--- /dev/null 2015-12-21 09:35:16.000000000 +0530 +++ new/test/tools/jjs/strict.js 2015-12-21 09:35:16.149672200 +0530 @@ -0,0 +1,12 @@ +/* + * This is the test JavaScript program used in jjs-strictTest.sh + */ + +try { + v = "hello"; + throw new Error("should have thrown ReferenceError"); +} catch (e) { + if (! (e instanceof ReferenceError)) { + throw new Error("ReferenceError expected, got " + e); + } +}