summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 50d65c06d..ec6c46616 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -314,6 +314,7 @@ fn run_script(flags: DenoFlags, argv: Vec<String>) {
worker
.execute_mod_async(&main_module, false)
.and_then(move |()| {
+ js_check(worker.execute("window.dispatchEvent(new Event('load'))"));
worker.then(|result| {
js_check(result);
Ok(())