jdk-24/test/jdk/javax/script/Test2.js

10 lines
196 B
JavaScript
Raw Normal View History

2007-12-01 00:00:00 +00:00
if (Testobj.getVal() != 'Hello World') {
throw "unexpected value";
}
Testobj = "a string";
if (Testobj.getVal != undefined ||
Testobj != 'a string') {
throw "can' change Testobj?";
}