Files
node/test/fixtures
Joyee Cheung 851b460583 esm: improve ERR_REQUIRE_ASYNC_MODULE
This brings back several improvements that were reverted by mistake when
landing https://redirect.github.com/nodejs/node/pull/64154

- Update the documentation about how the removal of side effects of
  source collection
- Add non-enumerable `requireStack` and `topLevelAwaitLocations`
  properties to `ERR_REQUIRE_ASYNC_MODULE`, the latter is only
  populated when --experimental-print-required-tla is enabled
- Add "Required module: <url>" to the error message to identify the
  required ESM entry point regardless of whether the flag is enabled
- Fix TLA caret column from 0-based to 1-based
- Store module source via a private symbol instead of a public property
- Use `hasAsyncGraph` (post-instantiation) in `throwIfAsyncGraph`
  instead of walking the graph before instantiation
- Merge the require stack checking into the
  `common.expectRequiredTLAError` helper.
- Removed tests that are made redundant by the snapshot tests

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/64260
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-07-06 10:03:33 +02:00
..
2017-03-10 11:23:48 -08:00
2026-01-11 18:05:01 +00:00
2020-01-23 05:22:36 -08:00
2025-09-22 18:12:43 -07:00
2023-08-21 16:41:53 +00:00
2017-03-10 11:23:48 -08:00
2019-01-10 09:00:17 -05:00
2010-05-26 18:33:38 -07:00
2012-02-07 23:42:38 +01:00
2010-05-13 12:42:17 -07:00
2017-05-19 15:22:44 -04:00
2017-05-19 15:22:44 -04:00
2022-03-28 21:15:08 +01:00
2018-01-16 23:44:27 +01:00
2019-01-05 21:36:47 +01:00
2025-02-08 12:43:53 +00:00
2010-03-11 22:00:55 -08:00
2022-08-29 11:39:15 +08:00
2010-07-19 10:16:31 -07:00
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2019-01-08 12:57:24 -06:00
2026-05-05 16:19:41 +02:00
2017-06-06 23:33:56 -07:00
2012-12-13 17:00:28 -08:00
…