[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 12:17:43 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=153981

--- Comment #36 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 272326
  --> https://bugs.webkit.org/attachment.cgi?id=272326
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(); }}

-- 
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/fa05f346/attachment.html>


More information about the webkit-unassigned mailing list