nashorn/test/script/basic/es6/const-redeclare-extra.js.EXPECTED
author yan
Mon, 08 Sep 2014 15:37:50 +0400
changeset 26502 71d3891037bb
child 26504 ed05e2f4c2db
permissions -rw-r--r--
8057678: Tests for let and const keywords in Nashorn Reviewed-by: hannesw, lagergren Contributed-by: Sergey Lugovoy <sergey.lugovoy@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26502
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     1
SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@2:3:8 Variable "x" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     2
    var x = {};
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     3
        ^
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     4
SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@4:2:8 Variable "x" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     5
    var x = 2;
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     6
        ^
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     7
SyntaxError: test/script/basic/es6/const-redeclare-extra.js#36:8<eval>@4:2:13 Variable "x" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     8
    function x () {}
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     9
             ^