From 9c454998646ef49f652bc919f53503ed07a1c55c Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 16 Jul 2019 13:19:26 +0900 Subject: Support window.onload (#2643) --- cli/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'cli') 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) { 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(()) -- cgit v1.2.3