Fri, 27 Feb 2015 14:33:47 +0100
8073707: const re-assignment should not reported as a early error
Reviewed-by: sundar, attila
1 VAR
2 LET
3 CONST
4 function FUNC() {}
5 GLOBAL
6 VAR
7 undefined
8 undefined
9 function FUNC() {}
10 GLOBAL
11 true
12 false
13 false
14 true
15 true
16 TypeError: Assignment to constant "CONST"
17 VAR
18 LETLET
19 CONST
20 function FUNC() {}
21 GLOBAL
22 VAR
23 undefined
24 undefined
25 function FUNC() {}
26 GLOBAL
27 true
28 false
29 false
30 true
31 true
32 TypeError: Assignment to constant "CONST"