diff options
Diffstat (limited to 'src/node_main_instance.cc')
-rw-r--r-- | src/node_main_instance.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/node_main_instance.cc b/src/node_main_instance.cc index 9fefc371d66..617a71e7cac 100644 --- a/src/node_main_instance.cc +++ b/src/node_main_instance.cc @@ -259,10 +259,17 @@ NodeMainInstance::CreateMainEnvironment(int* exit_code, env->InitializeInspector({}); #endif - if (env->RunBootstrapping().IsEmpty()) { + if (!deserialize_mode_ && env->RunBootstrapping().IsEmpty()) { return nullptr; } + if (deserialize_mode_ && env->BootstrapNode().IsEmpty()) { + return nullptr; + } + + CHECK(env->req_wrap_queue()->IsEmpty()); + CHECK(env->handle_wrap_queue()->IsEmpty()); + env->set_has_run_bootstrapping_code(true); return env; } |