DescriptionLexical declarations should not be allowed in Statement
For example let and class should only be allowed inside function/block/script.
We have to continue to support const in statements in sloppy mode for backwards compatibility.
BUG=3831
LOG=Y
R=dslomov@chromium.org, adamk
Committed: https://crrev.com/13616615fd97f9cdde7ac93a883049a5f5122c82
Cr-Commit-Position: refs/heads/master@{#26337}
Patch Set 1 #Patch Set 2 : Add bug URL #Patch Set 3 : Allow const in sloppy statements again #Patch Set 4 : Update comment a bit #Patch Set 5 : Update comment a bit #
Total comments: 5
Patch Set 6 : Code review feedback #Patch Set 7 : Remove unused error messages #
Messages
Total messages: 15 (1 generated)
|