mirror of
https://github.com/denoland/deno.git
synced 2024-10-30 09:08:00 -04:00
f526513d74
This commit updates unhelpful messages that are raised when event loop stalls on unresolved top-level promises. Instead of "Module evaluation is still pending but there are no pending ops or dynamic imports. This situation is often caused by unresolved promises." and "Dynamically imported module evaluation is still pending but there are no pending ops. This situation is often caused by unresolved promises." we are now printing a message like: error: Top-level await promise never resolved [SOURCE LINE] ^ at [FUNCTION NAME] ([FILENAME]) eg: error: Top-level await promise never resolved await new Promise((_resolve, _reject) => {}); ^ at <anonymous> (file:///Users/ib/dev/deno/cli/tests/testdata/test/unresolved_promise.ts:1:1) Co-authored-by: David Sherret <dsherret@users.noreply.github.com> |
||
---|---|---|
.. | ||
nested | ||
tla | ||
tla2 | ||
tla3 | ||
circular.js | ||
circular.out | ||
loop.js | ||
loop.out | ||
nested.out | ||
order.js | ||
order.out | ||
top_level_await.js | ||
top_level_await.out | ||
top_level_await.ts | ||
top_level_for_await.js | ||
top_level_for_await.out | ||
top_level_for_await.ts | ||
unresolved.js | ||
unresolved.out |