jdk-24/nashorn/test/script/basic/JDK-8015959.js.EXPECTED
Athijegannathan Sundararajan 02e0b5c3f1 8015959: Can't call foreign constructor
Reviewed-by: jlaskey, hannesw
2013-06-24 19:06:01 +05:30

15 lines
232 B
Plaintext

check with loadWithNewGlobal
obj.x 344
obj.y 12
obj instanceof global.Point? true
p.x 343
p.y 54
p instanceof P? true
check with script engine
obj.x 344
obj.y 12
obj instanceof global.Point? true
p.x 343
p.y 54
p instanceof P? true