jdk-24/jdk/test/javax/script/Test2.js
2007-12-01 00:00:00 +00: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?";
}