jdk/test/javax/script/Test2.js
changeset 2 90ce3da70b43
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/javax/script/Test2.js	Sat Dec 01 00:00:00 2007 +0000
@@ -0,0 +1,9 @@
+if (Testobj.getVal() != 'Hello World') {
+    throw "unexpected value";
+}
+
+Testobj = "a string";
+if (Testobj.getVal != undefined ||
+    Testobj != 'a string') {
+    throw "can' change Testobj?";
+}