1 /* 2 * This is the test JavaScript program used in jjs-strictTest.sh 3 */ 4 5 try { 6 v = "hello"; 7 throw new Error("should have thrown ReferenceError"); 8 } catch (e) { 9 if (! (e instanceof ReferenceError)) { 10 throw new Error("ReferenceError expected, got " + e); 11 } 12 }