summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index a2b011362..25a09e85e 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -841,14 +841,7 @@ impl JsRuntime {
)
.await?;
let receiver = runtime.mod_evaluate(id);
- poll_fn(|cx| {
- let r = runtime.poll_event_loop(cx, false);
- // TODO(bartlomieju): some code in readable-stream polyfill in `ext/node`
- // is calling `nextTick()` during snapshotting, which causes infinite loop
- runtime.state.borrow_mut().has_tick_scheduled = false;
- r
- })
- .await?;
+ runtime.run_event_loop(false).await?;
receiver.await?
})
.with_context(|| format!("Couldn't execute '{}'", file_source.specifier))