comparison: test/script/basic/eval.js
test/script/basic/eval.js
- changeset 606
- 7cc5ff16380f
- parent 7
- 5a1b0714df0e
- child 952
- 6d5471a497fb
- child 962
- ac62e33a99b0
equal
deleted
inserted
replaced
67 try { |
67 try { |
68 // missing end quote |
68 // missing end quote |
69 eval("print('hello)"); |
69 eval("print('hello)"); |
70 } catch (e) { |
70 } catch (e) { |
71 print("is syntax error? " + (e instanceof SyntaxError)); |
71 print("is syntax error? " + (e instanceof SyntaxError)); |
72 print(e.toString().replace(/\\/g, '/')); |
72 printError(e); |
73 } |
73 } |