<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] "super" and "this" should be lexically bound inside an arrow function and should live in a JSLexicalEnvironment"
href="https://bugs.webkit.org/show_bug.cgi?id=149338#c79">Comment # 79</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] "super" and "this" 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:gskachkov@gmail.com" title="GSkachkov <gskachkov@gmail.com>"> <span class="fn">GSkachkov</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=149338#c78">comment #78</a>)
<span class="quote">> What happens when we call super once we've exited the constructor function?
> Is there anything in the spec on this? Does is mutate "this"?
>
> Like:
> ```
> class C extends B {
> constructor() {
> this.weird = () => super();
> super();
> }
> foo() {
> this.weird();
> }
> }
>
> (new C).foo();
> ```</span >
I've not checked this case, but I'm sure that we can't run super() twice in constructor, second call should lead to RuntimeException. See tred on es6-discuss <a href="https://esdiscuss.org/topic/duplicate-super-call-behaviour">https://esdiscuss.org/topic/duplicate-super-call-behaviour</a>.
But this behavior is not related to the arrow function.</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>