jdk-24/test/nashorn/script/basic/es6/let-redeclare-extra.js.EXPECTED
Erik Joelsson 72c4ec5462 8187444: Forest Consolidation: Make build work
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: darcy, ihse
2017-09-12 19:03:56 +02:00

16 lines
750 B
Plaintext

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