mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
`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>