mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Bug 887549 - Don't handle destructuring shorthand in syntax parser, r=jandem.
This commit is contained in:
parent
31661ab665
commit
9eae4c84a5
@ -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…
x
Reference in New Issue
Block a user