diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-28 03:12:25 +0100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2020-01-27 21:12:25 -0500 |
commit | ac10d79d231d3b66b918764b9706597321850687 (patch) | |
tree | 6a781c58075ee0c68091e71d2ffd2bb898dc9dfd /cli/compilers/compiler_worker.rs | |
parent | f604becaba0c747fdf8dd9d0d744c7bd19322e41 (diff) |
refactor: isomorphic snapshot for CLI (#3728)
Diffstat (limited to 'cli/compilers/compiler_worker.rs')
-rw-r--r-- | cli/compilers/compiler_worker.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/compilers/compiler_worker.rs b/cli/compilers/compiler_worker.rs index 461194c37..99138bcf0 100644 --- a/cli/compilers/compiler_worker.rs +++ b/cli/compilers/compiler_worker.rs @@ -41,8 +41,16 @@ impl CompilerWorker { let worker = Worker::new(name, startup_data, state_, external_channels); { let mut isolate = worker.isolate.try_lock().unwrap(); + ops::runtime::init(&mut isolate, &state); ops::compiler::init(&mut isolate, &state); ops::web_worker::init(&mut isolate, &state); + ops::errors::init(&mut isolate, &state); + + // for compatibility with Worker scope, though unused at + // the moment + ops::timers::init(&mut isolate, &state); + ops::fetch::init(&mut isolate, &state); + // TODO(bartlomieju): CompilerWorker should not // depend on those ops ops::os::init(&mut isolate, &state); |