summaryrefslogtreecommitdiff
path: root/src/node_main_instance.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_main_instance.cc')
-rw-r--r--src/node_main_instance.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc
index 05ff8d5526..630933cec8 100644
--- a/src/node_main_instance.cc
+++ b/src/node_main_instance.cc
@@ -179,6 +179,7 @@ std::unique_ptr<Environment> NodeMainInstance::CreateMainEnvironment(
if (deserialize_mode_) {
context =
Context::FromSnapshot(isolate_, kNodeContextIndex).ToLocalChecked();
+ InitializeContextRuntime(context);
SetIsolateUpForNode(isolate_, IsolateSettingCategories::kErrorHandlers);
} else {
context = NewContext(isolate_);