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