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