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

Unified Diff: tools/foozzie/v8_mock.js

Issue 2651713005: [foozzie] Mock out stack traces (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/foozzie/v8_mock.js
diff --git a/tools/foozzie/v8_mock.js b/tools/foozzie/v8_mock.js
index 82a5e72ccd203b4625d18b3029e27a4eb3a9022a..6bda1d564355d9d2712f740b8e534b40ec39c1ed 100644
--- a/tools/foozzie/v8_mock.js
+++ b/tools/foozzie/v8_mock.js
@@ -53,6 +53,11 @@ __magic_mock_date_handler = {
Date = new Proxy(Date, __magic_mock_date_handler);
+// Mock stack traces.
+Error.prepareStackTrace = function (error, structuredStackTrace) {
+ return "";
+}
+
// Mock Worker.
var __magic_index_for_mocked_worker = 0
// TODO(machenbach): Randomize this for each test case, but keep stable during
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698