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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter.js

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify Created 3 years, 10 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
OLDNEW
(Empty)
1 onconnect = e => {
2 var port = e.ports[0];
3 port.onmessage = (e) => {
4 if (e.data.type == 'COUNT_FEATURE')
5 internals.countFeature(e.data.feature);
6 else if (e.data.type == 'COUNT_DEPRECATION')
7 internals.countDeprecation(e.data.feature);
8 port.postMessage('COUNTED');
9 };
10 port.postMessage('CONNECTED');
11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698