node/lib/internal/bootstrap
Joyee Cheung 8a297ba3a0
bootstrap: refresh options in pre-execution
Refresh the options map during pre-execution to pave the way for
user land snapshots which may need to access run-time options at
snapshot-building time. The default embedded bootstrap snapshot
is still prevented from accessing them at snapshot building time
since it serves a wider audience and is ignorant of application
states, while the user-land snapshots are meant to be
application-specific and so it makes sense for them to access
runtime states as long as the snapshotted-code
works with re-initialized runtime states.

PR-URL: https://github.com/nodejs/node/pull/42466
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
2022-03-31 19:29:08 +08:00
..
switches tools,benchmark,lib,test: enable no-case-declarations lint rule 2022-01-05 07:42:19 -08:00
browser.js src: add kNoBrowserGlobals flag for Environment 2022-01-05 11:01:49 +00:00
environment.js process: run RunBootstrapping in CreateEnvironment 2019-04-03 08:46:03 +08:00
loaders.js module,repl: support 'node:'-only core modules 2022-03-21 22:21:09 +00:00
node.js src: include crypto in the bootstrap snapshot 2022-03-11 17:15:13 +00:00
pre_execution.js bootstrap: refresh options in pre-execution 2022-03-31 19:29:08 +08:00