|
|
Issue 117 - strict mode and future reserved words
Adds a new token value for all future reserved words. The scanner
is not strict mode aware and always returns the new
IDENTIFIER_OR_FUTURE_RESERVED_WORD token. The parser and preparser
check for the new token type based on the strict mode context.
BUG=
TEST=
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+241 lines, -65 lines) |
Patch |
 |
M |
src/messages.js
|
View
|
1
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/parser.h
|
View
|
1
|
3 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/parser.cc
|
View
|
1
|
19 chunks |
+79 lines, -16 lines |
0 comments
|
Download
|
 |
M |
src/preparser.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/preparser.cc
|
View
|
1
|
8 chunks |
+21 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/scanner-base.h
|
View
|
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/scanner-base.cc
|
View
|
1
|
6 chunks |
+55 lines, -6 lines |
0 comments
|
Download
|
 |
M |
src/token.h
|
View
|
1
|
2 chunks |
+5 lines, -32 lines |
0 comments
|
Download
|
 |
M |
test/mjsunit/strict-mode.js
|
View
|
1
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|