mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Support window.onload (#2643)
This commit is contained in:
parent
bd6ebb32df
commit
9c45499864
14 changed files with 162 additions and 88 deletions
|
@ -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(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue