Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1626)

Unified Diff: test/mjsunit/stack-traces.js

Issue 21173004: Version 3.20.11.1 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/regress/regress-crbug-258519.js ('k') | test/mjsunit/stack-traces-custom-lazy.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/regress/regress-crbug-258519.js ('k') | test/mjsunit/stack-traces-custom-lazy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698