jdk/test/tools/jjs/scripting.js
author duke
Wed, 05 Jul 2017 23:23:09 +0200
changeset 44981 30e75693ae99
parent 34721 59801fbd042e
permissions -rw-r--r--
Merge

/*
 * 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");
}