1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-01 09:24:20 -04:00
denoland-deno/cli/ops
Bartek Iwańczuk 135053486c
fix: top-level-await module execution (#7946)
This commit changes implementation of top-level-await in "deno_core".

Previously promise returned from module evaluation was not awaited,
leading to out-of-order execution of modules that have TLA. It's been
fixed by changing "JsRuntime::mod_evaluate" to be an async function
that resolves when the promise returned from module evaluation also
resolves. When waiting for promise resolution event loop is polled
repeatedly, until there are no more dynamic imports or pending
ops.
2020-10-14 14:04:09 +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(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
fetch.rs refactor: move op state registration to workers (#7696) 2020-09-28 12:14:11 +02:00
fs.rs fix(cli/ops/fs): Don't force Windows paths separate paths with forward slash (#7833) 2020-10-07 14:05:43 +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 chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11:00
mod.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +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(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +02:00
runtime_compiler.rs refactor(cli): rename GlobalState to ProgramState (#7914) 2020-10-13 13:35:35 +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 chore(cli): remove dead code (#7941) 2020-10-12 22:25:25 +11: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: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00