We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e458747 commit 995aa0fCopy full SHA for 995aa0f
src/module_wrap.cc
@@ -1529,7 +1529,8 @@ void ModuleWrap::SetImportModuleDynamicallyCallback(
1529
void ModuleWrap::HostInitializeImportMetaObjectCallback(
1530
Local<Context> context, Local<Module> module, Local<Object> meta) {
1531
Environment* env = Environment::GetCurrent(context);
1532
- CHECK_NOT_NULL(env); // TODO(addaleax): Handle nullptr here.
+ if (env == nullptr)
1533
+ return;
1534
ModuleWrap* module_wrap = GetFromModule(env, module);
1535
1536
if (module_wrap == nullptr) {
0 commit comments