We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e92244 commit 46c751eCopy full SHA for 46c751e
src/module_wrap.cc
@@ -1492,7 +1492,8 @@ void ModuleWrap::SetImportModuleDynamicallyCallback(
1492
void ModuleWrap::HostInitializeImportMetaObjectCallback(
1493
Local<Context> context, Local<Module> module, Local<Object> meta) {
1494
Environment* env = Environment::GetCurrent(context);
1495
- CHECK_NOT_NULL(env); // TODO(addaleax): Handle nullptr here.
+ if (env == nullptr)
1496
+ return;
1497
ModuleWrap* module_wrap = GetFromModule(env, module);
1498
1499
if (module_wrap == nullptr) {
0 commit comments