test/script/basic/JDK-8019508.js

changeset 606
7cc5ff16380f
parent 391
9165138b427c
child 952
6d5471a497fb
child 962
ac62e33a99b0
equal deleted inserted replaced
605:03a68e7ca1d5 606:7cc5ff16380f
34 fail("SyntaxError expected for: " + str); 34 fail("SyntaxError expected for: " + str);
35 } catch (e) { 35 } catch (e) {
36 if (! (e instanceof SyntaxError)) { 36 if (! (e instanceof SyntaxError)) {
37 fail("expected SyntaxError, got " + e); 37 fail("expected SyntaxError, got " + e);
38 } 38 }
39 print(e.message.replace(/\\/g, '/')); 39 printError(e);
40 } 40 }
41 } 41 }
42 42
43 // only comma 43 // only comma
44 checkObjLiteral("({,})"); 44 checkObjLiteral("({,})");

mercurial