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>

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