afu8u/jdk/test/javax/script/Test2.js

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?";
}