Files
node/doc/api
Joyee Cheung a006c5dd12 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-04 15:22:48 +00:00
..
2026-07-04 09:42:38 +00:00
2026-05-21 14:13:05 -07:00
2024-11-01 03:43:53 +00:00
2026-06-25 01:20:15 +02:00
2026-05-23 18:43:31 +00:00
2025-12-16 20:31:28 +00:00
2026-06-25 01:20:15 +02:00
2025-07-15 17:18:42 +00:00
2026-06-25 01:20:15 +02:00
2026-05-07 12:01:50 +02:00
2025-06-09 23:45:29 +02:00
2026-07-01 06:40:40 +00:00
2026-06-20 16:14:30 +09:00
2026-06-28 10:11:44 +00:00
2026-06-12 21:45:48 +00:00