[Webkit-unassigned] [Bug 161409] [JSC] Implement parsing of Async Functions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 21 15:34:39 PDT 2016


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

--- Comment #40 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Comment on attachment 289289
  --> https://bugs.webkit.org/attachment.cgi?id=289289
Async Function Parsing v5

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

>>> Source/JavaScriptCore/parser/Parser.h:320
>>> +    }
>> 
>> What is the purpose of this `isModule()`?
> 
> m_moduleScopeData used to be a member of Scope, so this made sense back then. I've gotten rid of this method, and just check if the one in the parser is null or not instead.
> 
> This seems to fix a bug where modules allow "await" as an identifier in nested functions (which was incorrect per https://tc39.github.io/ecma262/#prod-FutureReservedWord)

Nice. Make sense.

-- 
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/20160921/32b8f6d4/attachment.html>


More information about the webkit-unassigned mailing list