diff -r 03a68e7ca1d5 -r 7cc5ff16380f test/script/basic/JDK-8019791.js --- a/test/script/basic/JDK-8019791.js Wed Oct 09 17:53:22 2013 +0200 +++ b/test/script/basic/JDK-8019791.js Thu Oct 10 11:48:56 2013 +0200 @@ -33,7 +33,7 @@ eval('"" ~ ""'); print("FAILED: SyntaxError expected for: \"\" ~ \"\""); } catch (e) { - print(e.toString().replace(/\\/g, '/')); + printError(e); } // Used to crash instead of SyntaxError @@ -41,7 +41,7 @@ eval("function() { if (1~0) return 0; return 1 }"); print("FAILED: SyntaxError expected for: if (1~0) "); } catch (e) { - print(e.toString().replace(/\\/g, '/')); + printError(e); } // The following are valid, but used to crash