test/jdk/javax/script/Test2.js
author ssadetsky
Wed, 03 Apr 2019 15:43:25 -0700
branchJDK-8200758-branch
changeset 57303 eff0cf668c29
parent 47216 71c04702a3d5
permissions -rw-r--r--
8221876:[macOS] JPackage install takes long time Reviewed-by: almatvee
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
}