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


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

--- Comment #39 from GSkachkov <gskachkov at gmail.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/parser/Parser.cpp:3890
> +        if (currentFunctionScope()->isArrowFunction()) {
> +            if (currentFunctionScope()->hasDirectSuper())
> +                currentFunctionScope()->setInnerArrowFunctionUseSuperCall();
> +        
> +            if (currentFunctionScope()->needsSuperBinding())
> +                currentFunctionScope()->setInnerArrowFunctionUseSuperProperty();
> +        }
> +

Main change to fix error in tests

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


More information about the webkit-unassigned mailing list