nashorn/test/script/basic/NASHORN-51.js
changeset 20929 f2bd18181940
parent 18632 93017277615e
child 24778 2ff5d7041566
--- a/nashorn/test/script/basic/NASHORN-51.js	Wed Oct 09 17:53:22 2013 +0200
+++ b/nashorn/test/script/basic/NASHORN-51.js	Thu Oct 10 11:48:56 2013 +0200
@@ -35,28 +35,28 @@
         eval(literals[i] + "++");
         print("ERROR!! post increment : " + literals[i]);
     } catch (e) {
-        print(e.toString().replace(/\\/g, '/'));
+        printError(e);
     }
 
     try {
         eval(literals[i] + "--");
         print("ERROR!! post decrement : " + literals[i]);
     } catch (e) {
-        print(e.toString().replace(/\\/g, '/'));
+        printError(e);
     }
 
     try {
         eval("++" + literals[i]);
         print("ERROR!! pre increment : " + literals[i]);
     } catch (e) {
-        print(e.toString().replace(/\\/g, '/'));
+        printError(e);
     }
 
     try {
         eval("--" + literals[i]);
         print("ERROR!! pre decrement : " + literals[i]);
     } catch (e) {
-        print(e.toString().replace(/\\/g, '/'));
+        printError(e);
     }
 }