[Webkit-unassigned] [Bug 153981] [ES6] Arrow function syntax. Emit loading&putting this/super only if they are used in arrow function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 26 13:08:34 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=153981
--- Comment #38 from GSkachkov <gskachkov at gmail.com> ---
(In reply to comment #36)
> Comment on attachment 272326 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=272326&action=review
>
> > Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp:575
> > + if (SourceParseMode::ArrowFunctionMode == parseMode && (functionNode->usesThis() || isThisUsedInInnerArrowFunction()))
>
> Is this change here correct?
> Does it work for:
> class A { getValue() { ... } }
> class B extends A { constructor() { arr = ()=>super.getValue(); arr();
> super(); }}
It should work, we emit TDZ always when access to the super.
https://trac.webkit.org/browser/trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp#L922
--
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/20160226/697aca54/attachment.html>
More information about the webkit-unassigned
mailing list