summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/webui/test_api.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/webui/test_api.js')
-rw-r--r--chrome/test/data/webui/test_api.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js
index 83c5eb8..c16f362 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -445,7 +445,9 @@ var testing = {};
try {
this.setUp();
} catch(e) {
- console.error(e.stack);
+ // Mock4JSException doesn't inherit from Error, so fall back on
+ // toString().
+ console.error(e.stack || e.toString());
}
if (!this.deferred_)