Skip to content

Commit 280b1eb

Browse files
committed
fixup! src: restore context default IsCodeGenerationFromStringsAllowed value
1 parent e118eda commit 280b1eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/node_snapshotable.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ int SnapshotBuilder::Generate(SnapshotData* out,
10481048
if (base_context.IsEmpty()) {
10491049
return BOOTSTRAP_ERROR;
10501050
}
1051+
ResetContextSettingsBeforeSnapshot(base_context);
10511052

10521053
Local<Context> main_context = NewContext(isolate);
10531054
if (main_context.IsEmpty()) {
@@ -1116,10 +1117,9 @@ int SnapshotBuilder::Generate(SnapshotData* out,
11161117
size_str.c_str());
11171118
}
11181119
#endif
1119-
}
11201120

1121-
ResetContextSettingsBeforeSnapshot(base_context);
1122-
ResetContextSettingsBeforeSnapshot(main_context);
1121+
ResetContextSettingsBeforeSnapshot(main_context);
1122+
}
11231123

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

0 commit comments

Comments
 (0)