|
harmony-scoping: make assignment to 'const' a late error.
Per TC39 Nov 2014 decision.
This patch also changes behavior for "legacy const": assignments to sloppy const in strict mode is now also a type error. This fixes v8:2243 and also brings us in compliance with other engines re assignment to function names (see updated webkit test), but might have bigger implications.
That change can easily be reverted by changing Variable::IsSignallingAssignmentToConst.
BUG= v8:3713, v8:2243
LOG=N
Total comments: 13
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+96 lines, -54 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/arm64/full-codegen-arm64.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler/ast-graph-builder.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
5 chunks |
+26 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/hydrogen.cc
|
View
|
1
2
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-scopes.cc
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -15 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/block-const-assign.js
|
View
|
1
|
3 chunks |
+18 lines, -11 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/classes.js
|
View
|
1
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/module-linking.js
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/regress/regress-2243.js
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/regress/regress-2506.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/webkit/fast/js/basic-strict-mode-expected.txt
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 19 (3 generated)
|