Index: third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js b/third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js |
index 8c5f0035af89eba7aca77fcc1b43a99a1930b6f8..515132731493ab67d89e0686220a19b0eeb72dfc 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js |
@@ -1,6 +1,9 @@ |
self.onmessage = function(event) |
{ |
- console.log(event.data); |
+ if (event.data.indexOf("throw") === 0) |
+ Promise.reject(event.data); |
+ else |
+ console.log(event.data); |
self.postMessage(event.data); |
} |
self.postMessage("ready"); |