nashorn/test/script/basic/NASHORN-98.js
changeset 20929 f2bd18181940
parent 16151 97c1e756ae1e
child 24778 2ff5d7041566
--- a/nashorn/test/script/basic/NASHORN-98.js	Wed Oct 09 17:53:22 2013 +0200
+++ b/nashorn/test/script/basic/NASHORN-98.js	Thu Oct 10 11:48:56 2013 +0200
@@ -34,7 +34,7 @@
     if (! (e instanceof SyntaxError)) {
        fail("syntax error expected here got " + e);
     }
-    print(e.toString().replace(/\\/g, '/'));
+    printError(e);
 } 
 
 try {
@@ -43,5 +43,5 @@
     if (! (e instanceof SyntaxError)) {
        fail("syntax error expected here got " + e);
     }
-    print(e.toString().replace(/\\/g, '/'));
+    printError(e);
 }