1/*
2 * This is the test JavaScript program used in jjs-scriptingTest.sh
3 */
4
5var str = <<END
6Multi line string
7works in scripting
8END
9
10var n = "Nashorn";
11var hello = "Hello, ${n}";
12if (hello != "Hello, Nashorn") {
13    throw new Error("string interpolation didn't work");
14}
15
16if (typeof readFully != "function") {
17    throw new Error("readFully is defined in -scripting");
18}
19