diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-21 09:49:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-21 09:49:47 +0100 |
commit | 7966bf14c062a05b1606a62c996890571454ecc8 (patch) | |
tree | 65bede64b47707c3accc80d0bb18e99840c639f7 /cli/compilers | |
parent | c90036ab88bb1ae6b9c87d5e368f56d8c8afab69 (diff) |
refactor: split worker and worker host logic (#3722)
* split ops/worker.rs into ops/worker_host.rs and ops/web_worker.rs
* refactor js/workers.ts and factor out js/worker_main.ts - entry point for WebWorker runtime
* BREAKING CHANGE: remove support for blob: URL in Worker
* BREAKING CHANGE: remove Deno namespace support and noDenoNamespace option in Worker constructor
* introduce WebWorker struct which is a stripped down version of cli::Worker
Diffstat (limited to 'cli/compilers')
-rw-r--r-- | cli/compilers/ts.rs | 2 | ||||
-rw-r--r-- | cli/compilers/wasm.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index e8abbcd27..037043368 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -231,7 +231,7 @@ impl TsCompiler { fn setup_worker(global_state: ThreadSafeGlobalState) -> Worker { let (int, ext) = ThreadSafeState::create_channels(); let worker_state = - ThreadSafeState::new(global_state.clone(), None, None, true, int) + ThreadSafeState::new(global_state.clone(), None, None, int) .expect("Unable to create worker state"); // Count how many times we start the compiler worker. diff --git a/cli/compilers/wasm.rs b/cli/compilers/wasm.rs index e3297283b..ca889be1f 100644 --- a/cli/compilers/wasm.rs +++ b/cli/compilers/wasm.rs @@ -45,7 +45,7 @@ impl WasmCompiler { fn setup_worker(global_state: ThreadSafeGlobalState) -> Worker { let (int, ext) = ThreadSafeState::create_channels(); let worker_state = - ThreadSafeState::new(global_state.clone(), None, None, true, int) + ThreadSafeState::new(global_state.clone(), None, None, int) .expect("Unable to create worker state"); // Count how many times we start the compiler worker. |