--- /dev/null 2015-12-18 17:36:53.000000000 +0530 +++ new/test/tools/jjs/es6.js 2015-12-18 17:36:53.200361100 +0530 @@ -0,0 +1,13 @@ +/* + * This is the test JavaScript program used in jjs-es6Test.sh + */ + +const X = 4; +try { + X = 55; + throw new Error("should have thrown TypeError"); +} catch (e) { + if (! (e instanceof TypeError)) { + throw new Error("TypeError expected, got " + e); + } +}