| Index: dart/pkg/unittest/test_controller.js
|
| diff --git a/dart/pkg/unittest/test_controller.js b/dart/pkg/unittest/test_controller.js
|
| index 94c9f2fe1b2682c3aae4ff9dc97283fd743ad1a5..5a7db1e824a43ec3157f77c055b49f5ffeb26ddf 100644
|
| --- a/dart/pkg/unittest/test_controller.js
|
| +++ b/dart/pkg/unittest/test_controller.js
|
| @@ -14,7 +14,12 @@ if (typeof console == "object" && typeof console.clear == "function") {
|
| // Set window onerror to make sure that we catch test harness errors across all
|
| // browsers.
|
| window.onerror = function (message, url, lineNumber) {
|
| - showErrorAndExit("\n\n" + url + ":" + lineNumber + ":\n" + message + "\n\n");
|
| + if (url) {
|
| + showErrorAndExit(
|
| + "\n\n" + url + ":" + lineNumber + ":\n" + message + "\n\n");
|
| + } else {
|
| + showErrorAndExit(message);
|
| + }
|
| window.postMessage('unittest-suite-external-error', '*');
|
| };
|
|
|
|
|