1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-04 08:54:20 -05:00
denoland-deno/cli/tests/testdata/run/top_level_await
Bartek Iwańczuk f526513d74
feat(core): show unresolved promise origin (#16650)
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>
2022-11-28 23:07:23 +01:00
..
nested refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
tla refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
tla2 refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
tla3 refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
circular.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
circular.out feat(core): show unresolved promise origin (#16650) 2022-11-28 23:07:23 +01:00
loop.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
loop.out refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
nested.out refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
order.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
order.out refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_await.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_await.out refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_await.ts refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_for_await.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_for_await.out refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
top_level_for_await.ts refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
unresolved.js refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
unresolved.out feat(core): show unresolved promise origin (#16650) 2022-11-28 23:07:23 +01:00