Index: LayoutTests/http/tests/inspector/inspector-test.js |
diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js |
index 0984a710ae0ab4895ba17b3e6ee04394522c707c..fe9046dcdd51c5f0c8d2aec47af53bc6f381df5e 100644 |
--- a/LayoutTests/http/tests/inspector/inspector-test.js |
+++ b/LayoutTests/http/tests/inspector/inspector-test.js |
@@ -120,15 +120,12 @@ InspectorTest.addResults = function(textArray) |
InspectorTest.addResult(textArray[i]); |
} |
-function onError(event) |
+window.onerror = function (message, filename, lineno, colno, error) |
{ |
- window.removeEventListener("error", onError); |
- InspectorTest.addResult("Uncaught exception in inspector front-end: " + event.message + " [" + event.filename + ":" + event.lineno + "]"); |
+ InspectorTest.addResult("Uncaught exception in inspector front-end: " + message + " [" + error.stack + "]"); |
InspectorTest.completeTest(); |
} |
-window.addEventListener("error", onError); |
- |
InspectorTest.formatters = {}; |
InspectorTest.formatters.formatAsTypeName = function(value) |