diff options
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index b5855e653..8cf175cc5 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -194,21 +194,6 @@ impl Worker { self.js_runtime.mod_evaluate(id) } - /// Loads, instantiates and executes provided source code - /// as module. - pub async fn execute_module_from_code( - &mut self, - module_specifier: &ModuleSpecifier, - code: String, - ) -> Result<(), AnyError> { - let id = self - .js_runtime - .load_module(module_specifier, Some(code)) - .await?; - self.wait_for_inspector_session(); - self.js_runtime.mod_evaluate(id) - } - /// Returns a way to communicate with the Worker from other threads. pub fn thread_safe_handle(&self) -> WorkerHandle { self.external_channels.clone() |