<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Arrow function syntax. Lexical bind "super" inside of the arrow function in generator."
href="https://bugs.webkit.org/show_bug.cgi?id=152575#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Arrow function syntax. Lexical bind "super" inside of the arrow function in generator."
href="https://bugs.webkit.org/show_bug.cgi?id=152575">bug 152575</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>We are already supporting arguments in arrow function in generators.
Modified test example:
var result = 'some-value';
class B {
gen() {
return result;
}
}
class A extends B {
*gen() {
let arr = () => super.gen();
return arr();
}
}
var a = new A();
a.gen().next().value === result; //Should be true now it is : SyntaxErorr: super can only be used in a method of a derived class</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>