Skip to content

Commit 5060fd2

Browse files
joyeecheungtargos
authored andcommitted
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#45849 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 9ea0ae4 commit 5060fd2

7 files changed

Lines changed: 144 additions & 124 deletions

File tree

0 commit comments

Comments
 (0)