<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6] &quot;super&quot; and &quot;this&quot; should be lexically bound inside an arrow function and should live in a JSLexicalEnvironment"
   href="https://bugs.webkit.org/show_bug.cgi?id=149338#c80">Comment # 80</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6] &quot;super&quot; and &quot;this&quot; should be lexically bound inside an arrow function and should live in a JSLexicalEnvironment"
   href="https://bugs.webkit.org/show_bug.cgi?id=149338">bug 149338</a>
              from <span class="vcard"><a class="email" href="mailto:sbarati&#64;apple.com" title="Saam Barati &lt;sbarati&#64;apple.com&gt;"> <span class="fn">Saam Barati</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=149338#c79">comment #79</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=149338#c78">comment #78</a>)
&gt; &gt; What happens when we call super once we've exited the constructor function?
&gt; &gt; Is there anything in the spec on this? Does is mutate &quot;this&quot;?
&gt; &gt; 
&gt; &gt; Like:
&gt; &gt; ```
&gt; &gt; class C extends B {
&gt; &gt;     constructor() {
&gt; &gt;         this.weird = () =&gt; super();
&gt; &gt;         super();
&gt; &gt;     }
&gt; &gt;     foo() { 
&gt; &gt;         this.weird();
&gt; &gt;     }
&gt; &gt; }
&gt; &gt; 
&gt; &gt; (new C).foo();
&gt; &gt; ```
&gt; 
&gt; I've not checked this case, but I'm sure that we can't run super() twice in
&gt; constructor, second call should lead to RuntimeException. See tred on
&gt; es6-discuss <a href="https://esdiscuss.org/topic/duplicate-super-call-behaviour">https://esdiscuss.org/topic/duplicate-super-call-behaviour</a>. 
&gt; But this behavior is not related to the arrow function.</span >
Interesting. We currently don't throw on a second call to super().
That's bad, we should file a bug.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>