commit | 59ff4e28de9fef97f970dfc948f98b7fd480aa5a | [log] [tgz] |
---|---|---|
author | Tim van der Lippe <[email protected]> | Thu Dec 10 09:42:35 2020 |
committer | Commit Bot <[email protected]> | Thu Dec 10 10:21:28 2020 |
tree | 33dea2e92b1c3a06013c03fc568e1ee908dcae99 | |
parent | c8dc38a7d68d4c52a0fb7214ef2f0f0ce0911366 [diff] |
Move worker integration into entrypoint for wasmparser_worker This allows us to test the wasmparser_worker implementation in isolation in unit tests, while extracting out the worker integration into a separate file. A follow-up CL will migrate the wasmparser_worker to use URL-based worker construction, which will allow us to remove the wasmparser_worker-entrypoint in front_end/ and cleanup the RuntimeInstantiator.js logic. [email protected],[email protected] Bug: 1009443 Change-Id: I77d04ab870b38ec9f9209c1a156c123c941d169b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2581927 Commit-Queue: Tim van der Lippe <[email protected]> Reviewed-by: Jack Franklin <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]>
diff --git a/front_end/startup/BUILD.gn b/front_end/startup/BUILD.gn index 884ae31..9220a4d 100644 --- a/front_end/startup/BUILD.gn +++ b/front_end/startup/BUILD.gn
@@ -8,8 +8,6 @@ devtools_module("startup") { sources = [ "RuntimeInstantiator.js" ] - is_web_worker = true - deps = [ "../root:bundle" ] }
diff --git a/front_end/startup/RuntimeInstantiator.js b/front_end/startup/RuntimeInstantiator.js index 0f11d0f..562f87a 100644 --- a/front_end/startup/RuntimeInstantiator.js +++ b/front_end/startup/RuntimeInstantiator.js
@@ -88,6 +88,7 @@ return startApplication(appName).then(sendWorkerReady); function sendWorkerReady() { + // @ts-ignore self.postMessage('workerReady'); } }