Index: test/mjsunit/stack-traces.js |
diff --git a/test/mjsunit/stack-traces.js b/test/mjsunit/stack-traces.js |
index 46a16eb87a2db857a00f8d7de060af09ffc2fa00..4a37ee6fa4f9ead6629c351af03cc72111a173b7 100644 |
--- a/test/mjsunit/stack-traces.js |
+++ b/test/mjsunit/stack-traces.js |
@@ -315,11 +315,7 @@ assertTrue(fired); |
Error.prepareStackTrace = function() { throw new Error("abc"); }; |
var message; |
try { |
- try { |
- throw new Error(); |
- } catch (e) { |
- e.stack; |
- } |
+ throw new Error(); |
} catch (e) { |
message = e.message; |
} |
@@ -328,6 +324,6 @@ assertEquals("abc", message); |
// Test that modifying Error.prepareStackTrace by itself works. |
Error.prepareStackTrace = function() { Error.prepareStackTrace = "custom"; }; |
-new Error().stack; |
+new Error(); |
assertEquals("custom", Error.prepareStackTrace); |