1.1 --- a/test/script/basic/JDK-8019791.js Wed Oct 09 17:53:22 2013 +0200 1.2 +++ b/test/script/basic/JDK-8019791.js Thu Oct 10 11:48:56 2013 +0200 1.3 @@ -33,7 +33,7 @@ 1.4 eval('"" ~ ""'); 1.5 print("FAILED: SyntaxError expected for: \"\" ~ \"\""); 1.6 } catch (e) { 1.7 - print(e.toString().replace(/\\/g, '/')); 1.8 + printError(e); 1.9 } 1.10 1.11 // Used to crash instead of SyntaxError 1.12 @@ -41,7 +41,7 @@ 1.13 eval("function() { if (1~0) return 0; return 1 }"); 1.14 print("FAILED: SyntaxError expected for: if (1~0) "); 1.15 } catch (e) { 1.16 - print(e.toString().replace(/\\/g, '/')); 1.17 + printError(e); 1.18 } 1.19 1.20 // The following are valid, but used to crash