nashorn/test/script/basic/es6/lexical-toplevel.js.EXPECTED
author hannesw
Thu, 27 Nov 2014 16:42:53 +0100
changeset 27817 56f6161c3e55
parent 27814 96427359f4fe
permissions -rw-r--r--
8057980: let & const: remaining issues with lexical scoping Reviewed-by: lagergren, attila
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27814
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     1
VAR
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     2
LET
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     3
CONST
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     4
function FUNC() {}
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     5
GLOBAL
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     6
VAR
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     7
undefined
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     8
undefined
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
     9
function FUNC() {}
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    10
GLOBAL
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    11
true
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    12
false
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    13
false
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    14
true
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    15
true
27817
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents: 27814
diff changeset
    16
TypeError: Assignment to constant "CONST"
27814
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    17
VAR
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    18
LETLET
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    19
CONST
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    20
function FUNC() {}
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    21
GLOBAL
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    22
VAR
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    23
undefined
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    24
undefined
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    25
function FUNC() {}
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    26
GLOBAL
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    27
true
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    28
false
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    29
false
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    30
true
96427359f4fe 8057691: Nashorn: let & const declarations are not shared between scripts
hannesw
parents:
diff changeset
    31
true
27817
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents: 27814
diff changeset
    32
TypeError: Assignment to constant "CONST"