Index: third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html |
diff --git a/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html |
index 399894a478cc61f7e7e2eaccf4cb9b5b3522c075..ddff00cfab8e70ad94a79eff57d66bb6c90cd8a6 100644 |
--- a/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html |
+++ b/third_party/WebKit/LayoutTests/fast/workers/resources/shared-worker-usecounter-window.html |
@@ -2,10 +2,7 @@ |
<title>Shared Worker: UseCounter</title> |
<script> |
self.connectToWorker = () => { |
- return new Promise(resolve => { |
- var worker = new SharedWorker('shared-worker-usecounter.js'); |
- worker.port.onmessage = resolve; |
- }); |
+ var worker = new SharedWorker('shared-worker-usecounter.js'); |
}; |
window.opener.postMessage('LOADED', '*'); |
</script> |