Skip to content

Commit db8ea44

Browse files
committed
bootstrap: make CJS loader snapshotable
This patch makes the top-level access to runtime states in the CJS loader lazy, and move the side-effects into a initializeCJS() function that gets called during pre-execution. As a result the CJS loader can be included into the built-in snapshot. PR-URL: nodejs/node#45849 Backport-PR-URL: nodejs/node#46425 Reviewed-By: Geoffrey Booth <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 5df6d42 commit db8ea44

File tree

7 files changed

+144
-124
lines changed

7 files changed

+144
-124
lines changed

0 commit comments

Comments
 (0)