Prevent async methods named 'function' in Object literal
authorgskachkov@gmail.com <gskachkov@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 May 2017 21:35:49 +0000 (21:35 +0000)
committergskachkov@gmail.com <gskachkov@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 30 May 2017 21:35:49 +0000 (21:35 +0000)
commit2edba30a552ed636998dccac21a9d6bfabdf4e2a
tree7fe8f4f2e765bf1ceb5c8a33273260a44893772d
parente850bca0b39fab2d5c47d39cd14355544e05da53
Prevent async methods named 'function' in Object literal
https://bugs.webkit.org/show_bug.cgi?id=172660

Reviewed by Saam Barati.

JSTests:

* stress/async-await-syntax.js:
(testTopLevelAsyncAwaitSyntaxSloppyMode.testSyntaxError):

Source/JavaScriptCore:

Prevent async method named 'function' in object.
https://github.com/tc39/ecma262/pull/884

* parser/Parser.cpp:
(JSC::Parser<LexerType>::parsePropertyMethod):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@217578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/async-await-syntax.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/parser/Parser.cpp