node/lib/internal/process
Joyee Cheung 052e095c6b
vm: use internal versions of compileFunction and Script
Instead of using the public versions of the vm APIs internally,
use the internal versions so that we can skip unnecessary
argument validation.

The public versions would need special care to the generation
of host-defined options to hit the isolate compilation cache
when imporModuleDynamically isn't used, while internally it's
almost always used, so this allows us to handle the host-defined
options separately.

PR-URL: https://github.com/nodejs/node/pull/50137
Backport-PR-URL: https://github.com/nodejs/node/pull/51004
Refs: https://github.com/nodejs/node/issues/35375
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-03-15 17:56:06 +00:00
..
esm_loader.js util: add getCwdSafe internal util fn 2023-11-23 10:52:03 +01:00
execution.js vm: use internal versions of compileFunction and Script 2024-03-15 17:56:06 +00:00
per_thread.js bootstrap: lazy load non-essential modules 2023-11-10 09:46:18 +01:00
policy.js policy: disable process.binding() when enabled 2023-08-08 10:10:53 -03:00
pre_execution.js policy: fix path to URL conversion 2023-11-26 20:32:39 +01:00
promises.js lib: add trailing commas in internal/process 2023-04-05 09:58:24 -04:00
report.js lib: add trailing commas in internal/process 2023-04-05 09:58:24 -04:00
signal.js lib: add trailing commas in internal/process 2023-04-05 09:58:24 -04:00
task_queues.js lib: add trailing commas in internal/process 2023-04-05 09:58:24 -04:00
warning.js module: do less CJS module loader initialization at run time 2023-11-10 14:22:48 +01:00
worker_thread_only.js lib: add trailing commas in internal/process 2023-04-05 09:58:24 -04:00