1 /*
   2  * This is the test JavaScript program used in jjs-DTest.sh
   3  */
   4 
   5 var Sys = java.lang.System;
   6 if (Sys.getProperty("jjs.foo") == "bar") {
   7     print("Passed");
   8 } else {
   9     // unexpected value
  10     throw new Error("Unexpected System property value");
  11 }