Skip to content

Commit

Permalink
fixup! src: restore context default IsCodeGenerationFromStringsAllowe…
Browse files Browse the repository at this point in the history
…d value
  • Loading branch information
legendecas committed Aug 22, 2022
1 parent e118eda commit 280b1eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_snapshotable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,7 @@ int SnapshotBuilder::Generate(SnapshotData* out,
if (base_context.IsEmpty()) {
return BOOTSTRAP_ERROR;
}
ResetContextSettingsBeforeSnapshot(base_context);

Local<Context> main_context = NewContext(isolate);
if (main_context.IsEmpty()) {
Expand Down Expand Up @@ -1116,10 +1117,9 @@ int SnapshotBuilder::Generate(SnapshotData* out,
size_str.c_str());
}
#endif
}

ResetContextSettingsBeforeSnapshot(base_context);
ResetContextSettingsBeforeSnapshot(main_context);
ResetContextSettingsBeforeSnapshot(main_context);
}

// Global handles to the contexts can't be disposed before the
// blob is created. So initialize all the contexts before adding them.
Expand Down

0 comments on commit 280b1eb

Please sign in to comment.