test/jdk/tools/jjs/sysprops.js
author prr
Fri, 25 May 2018 12:12:24 -0700
changeset 50347 b2f046ae8eb6
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge

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

var Sys = java.lang.System;
if (Sys.getProperty("jjs.foo") == "bar") {
    print("Passed");
} else {
    // unexpected value
    throw new Error("Unexpected System property value");
}