[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
Sat Feb 27 16:20:00 PST 2016


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

--- Comment #43 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 272424
  --> https://bugs.webkit.org/attachment.cgi?id=272424
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=272424&action=review

> Source/JavaScriptCore/parser/Parser.cpp:3883
> +        if (currentFunctionScope()->isArrowFunction()) {

I don't understand this code. Why does this happen unconditionally?
Shouldn't it depend on if "baseIsSuper == true"?
Also, does this miss the case where you just have "super" without
a property access or function call afterward?
I.e:
()=>super;

--- Comment #44 from Saam Barati <sbarati at apple.com> ---
Comment on attachment 272424
  --> https://bugs.webkit.org/attachment.cgi?id=272424
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=272424&action=review

> Source/JavaScriptCore/parser/Parser.cpp:3883
> +        if (currentFunctionScope()->isArrowFunction()) {

I don't understand this code. Why does this happen unconditionally?
Shouldn't it depend on if "baseIsSuper == true"?
Also, does this miss the case where you just have "super" without
a property access or function call afterward?
I.e:
()=>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/20160228/a0de4448/attachment.html>


More information about the webkit-unassigned mailing list