We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a2fa2 commit 1476182Copy full SHA for 1476182
src/module_wrap.cc
@@ -572,7 +572,8 @@ void ModuleWrap::SetImportModuleDynamicallyCallback(
572
void ModuleWrap::HostInitializeImportMetaObjectCallback(
573
Local<Context> context, Local<Module> module, Local<Object> meta) {
574
Environment* env = Environment::GetCurrent(context);
575
- CHECK_NOT_NULL(env); // TODO(addaleax): Handle nullptr here.
+ if (env == nullptr)
576
+ return;
577
ModuleWrap* module_wrap = GetFromModule(env, module);
578
579
if (module_wrap == nullptr) {
0 commit comments