jdk-24/test/jdk/javax/script/Test2.js
2017-09-12 19:03:39 +02:00

10 lines
196 B
JavaScript

if (Testobj.getVal() != 'Hello World') {
throw "unexpected value";
}
Testobj = "a string";
if (Testobj.getVal != undefined ||
Testobj != 'a string') {
throw "can' change Testobj?";
}