Description[strong] Implement static restrictions on binding/assignment to 'undefined'
identifier. Delete unused (and now incorrect) function IsValidStrictVariable.
Implements the strong mode proposal's static restrictions on the use of the
identifier 'undefined'. Assumes these restrictions are intended to be identical
to the restrictions on the use of 'eval' and 'arguments' in strict mode. The
AllowEvalOrArgumentsAsIdentifier enum has been renamed to
AllowRestrictedIdentifiers as logic involving it is now also used for this case.
BUG=v8:3956
LOG=N
Committed: https://crrev.com/8ef7159582dde933c71a7c6d73b6e936cf42a5cb
Cr-Commit-Position: refs/heads/master@{#27744}
Patch Set 1 #
Total comments: 14
Patch Set 2 : after cr #Patch Set 3 : make sure correct exception is tested for #Patch Set 4 : add assignment tests for for(-in, -of) constructs #Patch Set 5 : minor test correction #
Total comments: 14
Patch Set 6 : improve tests (rebase, only undefined.js has changed) #
Total comments: 4
Patch Set 7 : add parser sync tests, improve js tests #Patch Set 8 : rebase #
Messages
Total messages: 19 (7 generated)
|