From 9f1f76f0b0fc71fc57a885f37c5bcabfd1de4b82 Mon Sep 17 00:00:00 2001 From: Mathias Lafeldt Date: Sun, 19 Jun 2022 23:29:48 +0200 Subject: [PATCH] refactor: make MainWorker::evaluate_module public (#14892) --- runtime/worker.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/runtime/worker.rs b/runtime/worker.rs index 94c05cd82f..e46b5c75ff 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -236,7 +236,11 @@ impl MainWorker { } } - async fn evaluate_module(&mut self, id: ModuleId) -> Result<(), AnyError> { + /// Executes specified JavaScript module. + pub async fn evaluate_module( + &mut self, + id: ModuleId, + ) -> Result<(), AnyError> { let mut receiver = self.js_runtime.mod_evaluate(id); tokio::select! { // Not using biased mode leads to non-determinism for relatively simple