jdk/test/javax/script/Test7.js
author katleman
Thu, 03 Sep 2015 14:24:43 -0700
changeset 32450 f036508e86e7
parent 16038 de84354579d3
permissions -rw-r--r--
Added tag jdk9-b80 for changeset 56a580f0c008

//this is the first line of Test7.js
var filename;
try {
    load("nashorn:mozilla_compat.js");
} catch (e) {
    //ignored
}
importPackage(java.io);
importPackage(java);
var f = new File(filename);
var r = new BufferedReader(new InputStreamReader(new FileInputStream(f)));

var firstLine = r.readLine();
print(firstLine);