nashorn/test/script/basic/es6/let-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/let-redeclare-extra.js#35:8<eval>@2:2:8 Variable "x" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     2
    let x = 2;
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/let-redeclare-extra.js#35:8<eval>@4:3: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/let-redeclare-extra.js#35: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
     8
    var x = 2;
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
     9
        ^
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    10
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>@4:2:10 Variable "x" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    11
    const x = function (){};
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    12
          ^
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    13
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>@4:3:13 Variable "a" has already been declared
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    14
    function a () {};
71d3891037bb 8057678: Tests for let and const keywords in Nashorn
yan
parents:
diff changeset
    15
             ^