summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/worker.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 94c05cd82..e46b5c75f 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