refactor: make MainWorker::evaluate_module public
@@ -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
