jdk-24/nashorn/test/script/basic/es6/lexical-toplevel.js.EXPECTED
Hannes Wallnöfer 7b35db48f7 8057980: let & const: remaining issues with lexical scoping
Reviewed-by: lagergren, attila
2014-11-27 16:42:53 +01:00

33 lines
321 B
Plaintext

VAR
LET
CONST
function FUNC() {}
GLOBAL
VAR
undefined
undefined
function FUNC() {}
GLOBAL
true
false
false
true
true
TypeError: Assignment to constant "CONST"
VAR
LETLET
CONST
function FUNC() {}
GLOBAL
VAR
undefined
undefined
function FUNC() {}
GLOBAL
true
false
false
true
true
TypeError: Assignment to constant "CONST"