summaryrefslogtreecommitdiff
path: root/cli/compilers
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2019-11-09 21:07:14 +0100
committerBert Belder <bertbelder@gmail.com>2019-11-09 12:07:14 -0800
commit335e8bd33cd22891f12b58c4d9489d19c886ae4c (patch)
tree29d2c7098d922d325ea7ddf26a935eb498062f9d /cli/compilers
parentd586f119fa588a590a4ba2b74c8c210de710e3e7 (diff)
refactor: worker is no longer a resource (#3290)
Diffstat (limited to 'cli/compilers')
-rw-r--r--cli/compilers/ts.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs
index 854963eaa..327b3fbeb 100644
--- a/cli/compilers/ts.rs
+++ b/cli/compilers/ts.rs
@@ -223,8 +223,10 @@ impl TsCompiler {
/// Create a new V8 worker with snapshot of TS compiler and setup compiler's runtime.
fn setup_worker(global_state: ThreadSafeGlobalState) -> Worker {
- let worker_state = ThreadSafeState::new(global_state.clone(), None, true)
- .expect("Unable to create worker state");
+ let (int, ext) = ThreadSafeState::create_channels();
+ let worker_state =
+ ThreadSafeState::new(global_state.clone(), None, true, int)
+ .expect("Unable to create worker state");
// Count how many times we start the compiler worker.
global_state
@@ -236,6 +238,7 @@ impl TsCompiler {
"TS".to_string(),
startup_data::compiler_isolate_init(),
worker_state,
+ ext,
);
worker.execute("denoMain()").unwrap();
worker.execute("workerMain()").unwrap();