nashorn/test/script/basic/evalreturn.js.EXPECTED
author hannesw
Mon, 15 Jun 2015 15:37:01 +0200
changeset 31193 f019295fdeb3
parent 16147 e63b63819133
permissions -rw-r--r--
8086052: Script evaluation should not return last function declaration Reviewed-by: sundar, attila
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     1
99
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     2
world
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     3
1
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     4
undefined
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     5
undefined
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     6
hello
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
     7
Scoping OK
31193
f019295fdeb3 8086052: Script evaluation should not return last function declaration
hannesw
parents: 16147
diff changeset
     8
undefined
f019295fdeb3 8086052: Script evaluation should not return last function declaration
hannesw
parents: 16147
diff changeset
     9
function() { print('moist and delicious!'); }
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    10
moist and delicious!
31193
f019295fdeb3 8086052: Script evaluation should not return last function declaration
hannesw
parents: 16147
diff changeset
    11
function() { print('sweet and crunchy!'); }
16147
e63b63819133 8005403: Open-source Nashorn
jlaskey
parents:
diff changeset
    12
sweet and crunchy!