node/lib/internal/bootstrap
Chengzhong Wu c742220be9
lib,src: cache ModuleWrap.hasAsyncGraph
`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 merges the `intantiateSync`/`instantiate` and
`getNamespaceSync`/`getNamespace` as they are always sync.

PR-URL: https://github.com/nodejs/node/pull/59703
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2025-09-11 12:54:24 +00:00
..
switches worker: flush stdout and stderr on exit 2025-01-06 07:22:27 +00:00
web lib: expose global ErrorEvent 2025-08-18 08:14:54 +00:00
node.js quic: multiple fixups and updates 2025-09-07 19:29:01 -07:00
realm.js lib,src: cache ModuleWrap.hasAsyncGraph 2025-09-11 12:54:24 +00:00
shadow_realm.js module: bootstrap module loaders in shadow realm 2023-11-13 22:09:47 +08:00