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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 self.onmessage = function(event) 1 self.onmessage = function(event)
2 { 2 {
3 console.log(event.data); 3 if (event.data.indexOf("throw") === 0)
4 Promise.reject(event.data);
5 else
6 console.log(event.data);
4 self.postMessage(event.data); 7 self.postMessage(event.data);
5 } 8 }
6 self.postMessage("ready"); 9 self.postMessage("ready");
OLDNEW
« 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