Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > nashorn
view test/script/basic/es6/lexical-toplevel-redeclare.js.EXPECTED @ 1102:c3a510b73875
8057691: Nashorn: let & const declarations are not shared between scripts
Reviewed-by: lagergren, attila
author | hannesw |
---|---|
date | Mon, 24 Nov 2014 12:03:15 +0100 |
parents | |
children |
line wrap: on
line source
lexical-toplevel-redeclare-var-on-let.js SyntaxError: Variable "LET" has already been declared VAR LET CONST function FUNC() {} GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined function Object() { [native code] } function Object() { [native code] } lexical-toplevel-redeclare-func-on-let.js SyntaxError: Variable "LET" has already been declared VAR LET CONST function FUNC() {} GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined function Object() { [native code] } function Object() { [native code] } lexical-toplevel-redeclare-let-on-var.js SyntaxError: Variable "VAR" has already been declared VAR LET CONST function FUNC() {} GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined function Object() { [native code] } function Object() { [native code] } lexical-toplevel-redeclare-let-on-func.js SyntaxError: Variable "FUNC" has already been declared VAR LET CONST function FUNC() {} GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined function Object() { [native code] } function Object() { [native code] } lexical-toplevel-redeclare-let-on-builtin.js VAR LET CONST function FUNC() {} GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined LEXICAL BUILTIN function Object() { [native code] } lexical-toplevel-redeclare-let-on-global.js VAR LET CONST function FUNC() {} LEXICAL GLOBAL VAR undefined undefined function FUNC() {} GLOBAL ReferenceError: "SHOULD_NOT_EXIST" is not defined undefined LEXICAL BUILTIN function Object() { [native code] }