0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli/ops
Bartek Iwańczuk c7c7677825
fix(core): module execution with top level await (#7672)
This commit fixes implementation of top level await in "deno_core".

Previously promise returned from module execution was ignored causing to execute
modules out-of-order.

With this commit promise returned from module execution is stored on "JsRuntime"
and event loop is polled until the promise resolves.
2020-10-06 10:18:22 +02:00
..
dispatch_minimal.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
errors.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
fetch.rs refactor: move op state registration to workers (#7696) 2020-09-28 12:14:11 +02:00
fs.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
fs_events.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
io.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
mod.rs refactor(repl): use an inspector session (#7763) 2020-10-02 01:14:55 +02:00
net.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
net_unix.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
os.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
permissions.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
plugin.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
process.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
random.rs refactor: move op state registration to workers (#7696) 2020-09-28 12:14:11 +02:00
runtime.rs refactor(repl): use an inspector session (#7763) 2020-10-02 01:14:55 +02:00
runtime_compiler.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
signal.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
timers.rs refactor: move op state registration to workers (#7696) 2020-09-28 12:14:11 +02:00
tls.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
tty.rs refactor: factor out check_unstable op helper (#7695) 2020-09-26 20:26:51 +02:00
web_worker.rs refactor: move op state registration to workers (#7696) 2020-09-28 12:14:11 +02:00
websocket.rs refactor: use futures and serde_json from deno_core (#7614) 2020-09-21 18:36:37 +02:00
worker_host.rs fix(core): module execution with top level await (#7672) 2020-10-06 10:18:22 +02:00