jdk/test/javax/script/Test2.js
author sundar
Thu, 16 Dec 2010 20:52:09 +0530
changeset 7800 cf50efba2e1d
parent 2 90ce3da70b43
permissions -rw-r--r--
6980447: Rhino JavaScript engine code in jdk-7 has to updated with the latest code from Rhino 1.7R3. Summary: Updating Rhino javascript engine with version 1.7R3. Issue 6427783 (E4X support is missing from Sun's Mozilla JavaScript implementation) is also fixed as a side-effect. Reviewed-by: alanb, jjh
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
if (Testobj.getVal() != 'Hello World') {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
    throw "unexpected value";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
Testobj = "a string";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
if (Testobj.getVal != undefined ||
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
    Testobj != 'a string') {
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
    throw "can' change Testobj?";
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
}