nashorn/test/script/basic/es6/let-redeclare-extra.js.EXPECTED
author attila
Tue, 09 Sep 2014 15:33:58 +0200
changeset 26504 ed05e2f4c2db
parent 26502 71d3891037bb
child 27814 96427359f4fe
permissions -rw-r--r--
8057930: remove eval ID Reviewed-by: hannesw, sundar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26504
ed05e2f4c2db 8057930: remove eval ID
attila
parents: 26502
diff changeset
     1
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>:2:8 Variable "x" has already been declared
26502
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
        ^
26504
ed05e2f4c2db 8057930: remove eval ID
attila
parents: 26502
diff changeset
     4
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>:3:8 Variable "x" has already been declared
26502
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
        ^
26504
ed05e2f4c2db 8057930: remove eval ID
attila
parents: 26502
diff changeset
     7
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>:2:8 Variable "x" has already been declared
26502
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
        ^
26504
ed05e2f4c2db 8057930: remove eval ID
attila
parents: 26502
diff changeset
    10
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>:2:10 Variable "x" has already been declared
26502
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
          ^
26504
ed05e2f4c2db 8057930: remove eval ID
attila
parents: 26502
diff changeset
    13
SyntaxError: test/script/basic/es6/let-redeclare-extra.js#35:8<eval>:3:13 Variable "a" has already been declared
26502
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
             ^