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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/resources/worker-console-worker.js

Issue 2141673002: [DevTools] Always send a copy of worker message through the page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 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 | third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/worker/worker-console.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698