mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 887549 - Don't handle destructuring shorthand in syntax parser, r=jandem.
This commit is contained in:
parent
96eb6d7022
commit
3e59abea5d
@ -6624,6 +6624,8 @@ Parser<ParseHandler>::primaryExpr(TokenKind tt)
|
||||
* Support, e.g., |var {x, y} = o| as destructuring shorthand
|
||||
* for |var {x: x, y: y} = o|, per proposed JS2/ES4 for JS1.8.
|
||||
*/
|
||||
if (!abortIfSyntaxParser())
|
||||
return null();
|
||||
tokenStream.ungetToken();
|
||||
if (!tokenStream.checkForKeyword(atom->charsZ(), atom->length(), NULL, NULL))
|
||||
return null();
|
||||
|
Loading…
Reference in New Issue
Block a user