Files
node/lib
Joyee Cheung 1d6a62662c src: move import.meta initializer to native land
When the source text module is compiled without custom callbacks,
instead of calling into JS land from the per-isolate import.meta
initializer and then back to C++ land to set up lazy data
properties, just do the initialization all in C++ land.
Only import.meta.resolve initialization will call back
into JS land to generate a closure that call the cascaded loader
for resolution.

In addition, simplify the loader structure by merging
allowImportMetaResolve into isForAsyncLoaderHookWorker - the two
are essentially equivalent, as import.meta.resolve is only
allowed in a non-loader-hook worker thread's loader.

PR-URL: https://github.com/nodejs/node/pull/60603
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
2025-11-08 16:33:34 +00:00
..
2025-08-05 03:51:16 +00:00
2024-07-08 15:55:43 +00:00
2025-09-22 23:19:26 +00:00
2025-07-18 09:28:21 +00:00
2024-10-09 06:42:16 +00:00
2025-09-04 11:58:50 +00:00
2025-01-04 18:30:04 +00:00
2025-09-14 00:39:32 +00:00
2025-11-05 02:52:26 +00:00
2025-08-05 13:45:41 +00:00