[Webkit-unassigned] [Bug 152575] [ES6] Arrow function syntax. Lexical bind "super" inside of the arrow function in generator.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 3 04:54:37 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=152575
Yusuke Suzuki <utatane.tea at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #272737|review? |review+
Flags| |
--- Comment #3 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Comment on attachment 272737
--> https://bugs.webkit.org/attachment.cgi?id=272737
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=272737&action=review
Nice catch. The approach looks nice. A few nits.
> Source/JavaScriptCore/parser/Parser.h:939
> {
This function should be renamed to represent the returned scope is not generator's scope.
And please note that this function skips arrow function and generator, but it does not skip generator function.
> Source/JavaScriptCore/tests/stress/arrowfunction-lexical-bind-superproperty.js:147
> + }
Could you add tests like
method() {
function *gen() {
let arr = () => super.getValue();
arr();
}
}
This should be SyntaxError.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160303/a1c79a9b/attachment-0001.html>
More information about the webkit-unassigned
mailing list