Description[parser] disallow language mode directive in body of function with non-simple parameters
TC39 agreed to disallow "use strict" directives in function body when
non-simple parameter lists are used.
This is a continuation of caitp's CL https://codereview.chromium.org/1281163002/
with some refactorings removed for now.
Still TODO: there is a lot of duplication between the is_simple field of
FormalParametersBase and the NonSimpleParameter property ExpressionClassifier
keeps track of. It should be possible to remove the former with a minor
refactoring of arrow function parsing. This will be attempted in a follow-up CL.
BUG=
LOG=N
Committed: https://crrev.com/77394fa05a63a539ac4e6858d99cc85ec6867512
Cr-Commit-Position: refs/heads/master@{#30388}
Patch Set 1 #Patch Set 2 : alphabetise #Patch Set 3 : remove logging of parameter simpleness #Patch Set 4 : rewrite #Patch Set 5 : rebase #Patch Set 6 : minor test cleanup #
Total comments: 18
Patch Set 7 : cl feedback #Patch Set 8 : rebase #Patch Set 9 : rebase #Patch Set 10 : flag implications don't work in test suite? #
Messages
Total messages: 22 (8 generated)
|