mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
refactor: make MainWorker::evaluate_module public (#14892)
This commit is contained in:
parent
d0137a93df
commit
9f1f76f0b0
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue