node/lib/internal/console
Joyee Cheung 177558600e bootstrap: make I/O streams work with user-land snapshot
Use the mksnapshot cleanup hooks to release the references
to the native streams so that they can be destroyed right
before the snapshot is taken, and move the initialization
of the global console to pre-execution so that they can be
re-initialized during snapshot dehydration. This makes
it possible for user-land snapshots to use the I/O during
snapshot building.

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-04-06 12:25:48 -05:00
..
constructor.js bootstrap: make I/O streams work with user-land snapshot 2022-04-06 12:25:48 -05:00
global.js bootstrap: make I/O streams work with user-land snapshot 2022-04-06 12:25:48 -05:00