jdk/test/tools/jjs/scripting.js
author serb
Tue, 29 Mar 2016 17:03:18 +0300
changeset 36787 402e5e40f6e5
parent 34721 59801fbd042e
permissions -rw-r--r--
7179078: Remove @beaninfo processing from the makefiles Reviewed-by: erikj, alexsch

/*
 * This is the test JavaScript program used in jjs-scriptingTest.sh
 */

var str = <<END
Multi line string
works in scripting
END

var n = "Nashorn";
var hello = "Hello, ${n}";
if (hello != "Hello, Nashorn") {
    throw new Error("string interpolation didn't work");
}

if (typeof readFully != "function") {
    throw new Error("readFully is defined in -scripting");
}