Skip to content

lib,src: cache ModuleWrap.hasAsyncGraph#59703

Merged
nodejs-github-bot merged 2 commits intonodejs:mainfrom
legendecas:module-instantiated-sync
Sep 11, 2025
Merged

lib,src: cache ModuleWrap.hasAsyncGraph#59703
nodejs-github-bot merged 2 commits intonodejs:mainfrom
legendecas:module-instantiated-sync

Conversation

@legendecas
Copy link
Member

@legendecas legendecas commented Sep 1, 2025

v8::Module::IsGraphAsync() traverses the dependencies to find if they
contain TLA each time. ModuleWrap.hasAsyncGraph() caches the result
and exposes the property to JS land so that the presence of the property
module.hasAsyncGraph can be consistent.

This also allows C++ access of cached hasAsyncGraph.

This also merges the intantiateSync/instantiate and
getNamespaceSync/getNamespace as they are always sync.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants