|
[es6] Make assignment to new.target an early ReferenceError
In doing so, fix calls CheckAndRewriteReferenceExpression to take proper
start and end positions (instead of just pointing at the first token in
the LHS expression).
BUG= v8:4370
LOG=n
Committed: https://crrev.com/ef52836cd8c1340cf0c5054560fc936d6de1d25e
Cr-Commit-Position: refs/heads/master@{#30166}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+69 lines, -33 lines) |
Patch |
|
M |
src/ast.h
|
View
|
|
3 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/preparser.h
|
View
|
|
8 chunks |
+14 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/preparser.cc
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/message/new-target-assignment.js
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
test/message/new-target-assignment.out
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/message/new-target-for-loop.js
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
|
A |
test/message/new-target-for-loop.out
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/message/new-target-postfix-op.js
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
test/message/new-target-postfix-op.out
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
test/message/new-target-prefix-op.js
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
|
A |
test/message/new-target-prefix-op.out
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/new-target.js
|
View
|
1
2
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (3 generated)
|