diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-07-16 13:19:26 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-07-16 00:19:26 -0400 |
commit | 9c454998646ef49f652bc919f53503ed07a1c55c (patch) | |
tree | a6275bdefa3da50cae08c6c0f753d816215d9602 /cli | |
parent | bd6ebb32df11641e148fd0adca41e7188f16afce (diff) |
Support window.onload (#2643)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/main.rs | 1 |
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(()) |