nodejs-github-bot · GitHub

@nodejs-github-bot added lib / src

Issues and PRs related to general changes in the lib or src directory.

needs-ci

PRs that need a full CI run.

labels

Jun 26, 2026

@joyeecheung

@joyeecheung

aduh95

Previously in order to collect the locations of the TLA, we wait
until right before evalutation to ensure instantiation is
completed so that we can use
v8::Module::GetStalledTopLevelAwaitMessages(). Now we try to
add an additioanl shortcut to the source code in the module wraps
instead during compilation for modules that contain TLAs and
use acron to locate the TLAs when we need to throw
ERR_REQUIRE_AYNSC_MODULE, so we can do this as early as before
instantiation and do not need to run the module again to collect
the locations.
In addition, we now collect the require stack for
ERR_REQUIRE_ASYNC_MODULE too for better metadata in the errors.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>

@joyeecheung

@joyeecheung

@joyeecheung

@nodejs-github-bot

@joyeecheung joyeecheung added dont-land-on-v22.x

PRs that should not land on the v22.x-staging branch and should not be released in v22.x.

dont-land-on-v24.x

PRs that should not land on the v24.x-staging branch and should not be released in v24.x.

dont-land-on-v26.x

PRs that should not land on the v26.x-staging branch and should not be released in v26.x.

labels

Jul 2, 2026

Closed

@joyeecheung joyeecheung removed dont-land-on-v24.x

PRs that should not land on the v24.x-staging branch and should not be released in v24.x.

dont-land-on-v26.x

PRs that should not land on the v26.x-staging branch and should not be released in v26.x.

labels

Jul 5, 2026

aduh95 pushed a commit that referenced this pull request

Jul 6, 2026
Previously in order to collect the locations of the TLA, we wait
until right before evalutation to ensure instantiation is
completed so that we can use
v8::Module::GetStalledTopLevelAwaitMessages(). Now we try to
add an additioanl shortcut to the source code in the module wraps
instead during compilation for modules that contain TLAs and
use acron to locate the TLAs when we need to throw
ERR_REQUIRE_AYNSC_MODULE, so we can do this as early as before
instantiation and do not need to run the module again to collect
the locations.
In addition, we now collect the require stack for
ERR_REQUIRE_ASYNC_MODULE too for better metadata in the errors.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: #64154
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>

Merged

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request

Jul 9, 2026

ECG Bot Tyrone Meijn

Merged

aduh95 pushed a commit to joyeecheung/node that referenced this pull request

Aug 13, 2026
Previously in order to collect the locations of the TLA, we wait
until right before evalutation to ensure instantiation is
completed so that we can use
v8::Module::GetStalledTopLevelAwaitMessages(). Now we try to
add an additioanl shortcut to the source code in the module wraps
instead during compilation for modules that contain TLAs and
use acron to locate the TLAs when we need to throw
ERR_REQUIRE_AYNSC_MODULE, so we can do this as early as before
instantiation and do not need to run the module again to collect
the locations.
In addition, we now collect the require stack for
ERR_REQUIRE_ASYNC_MODULE too for better metadata in the errors.
Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: nodejs#64154
Backport-PR-URL: nodejs#65125
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>

Read the original on github.com ↗