nashorn/test/script/basic/run-octane.js
changeset 24749 1549c85f8200
parent 24743 138ee369abd8
child 24751 ccbd9cd3f720
--- a/nashorn/test/script/basic/run-octane.js	Tue Apr 29 16:00:53 2014 +0200
+++ b/nashorn/test/script/basic/run-octane.js	Fri May 02 18:22:29 2014 +0200
@@ -25,7 +25,13 @@
  * @subtest
  */
 
-var read = readFully;
+var read;
+try {
+    read = readFully;
+} catch (e) {
+    print("ABORTING: Cannot find 'readFully'. You must have scripting enabled to use this test harness. (-scripting)");
+    throw e;
+}
 
 function initZlib() {
     zlib = new BenchmarkSuite('zlib', [152815148], [