[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:19:58 PST 2016


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

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?

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

More information about the webkit-unassigned mailing list