1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

refactor: make MainWorker::evaluate_module public (#14892)

This commit is contained in:
Mathias Lafeldt 2022-06-19 23:29:48 +02:00 committed by GitHub
parent d0137a93df
commit 9f1f76f0b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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); let mut receiver = self.js_runtime.mod_evaluate(id);
tokio::select! { tokio::select! {
// Not using biased mode leads to non-determinism for relatively simple // Not using biased mode leads to non-determinism for relatively simple