1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/cli/tests/tla
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
..
a.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
b.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
c.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
d.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
order.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00
parent.js fix: top-level-await module execution (#7946) 2020-10-14 14:04:09 +02:00