diff options
author | Anna Henningsen <anna.henningsen@mongodb.com> | 2023-01-24 21:35:27 +0100 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2023-02-03 20:48:23 +0000 |
commit | 02fad4f40a10320406f22cd38c4994bd5fed0289 (patch) | |
tree | cefa81e8e31606f1322f16eaf9313b1984707fc1 /src/node_snapshotable.cc | |
parent | 06bb6b42b3e76dc14898a093e02381712b5f52c1 (diff) | |
download | node-new-02fad4f40a10320406f22cd38c4994bd5fed0289.tar.gz |
src: make build_snapshot a per-Isolate option, rather than a global one
PR-URL: https://github.com/nodejs/node/pull/45888
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_snapshotable.cc')
-rw-r--r-- | src/node_snapshotable.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_snapshotable.cc b/src/node_snapshotable.cc index c3eaf826e4..a9f729f80e 100644 --- a/src/node_snapshotable.cc +++ b/src/node_snapshotable.cc @@ -1136,7 +1136,7 @@ ExitCode SnapshotBuilder::Generate(SnapshotData* out, // It's only possible to be kDefault in node_mksnapshot. SnapshotMetadata::Type snapshot_type = - per_process::cli_options->build_snapshot + per_process::cli_options->per_isolate->build_snapshot ? SnapshotMetadata::Type::kFullyCustomized : SnapshotMetadata::Type::kDefault; |