jdk-24/nashorn/test/script/basic/es6/const-redeclare-extra.js.EXPECTED
Sergey Lugovoy 5c841f8049 8057678: Tests for let and const keywords in Nashorn
Reviewed-by: hannesw, lagergren
2014-09-08 15:37:50 +04:00

10 lines
436 B
Plaintext

SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@2:3:8 Variable "x" has already been declared
var x = {};
^
SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@4:2:8 Variable "x" has already been declared
var x = 2;
^
SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@4:2:13 Variable "x" has already been declared
function x () {}
^