| Index: src/contexts.cc
|
| diff --git a/src/contexts.cc b/src/contexts.cc
|
| index ef480527ff718b41c85f26399d692e3bf521bb42..169d9a12232772a523145e2b3c45db186f02bb1e 100644
|
| --- a/src/contexts.cc
|
| +++ b/src/contexts.cc
|
| @@ -313,8 +313,8 @@ bool Context::IsBootstrappingOrValidParentContext(
|
| if (Isolate::Current()->bootstrapper()->IsActive()) return true;
|
| if (!object->IsContext()) return false;
|
| Context* context = Context::cast(object);
|
| - return context->IsNativeContext() || context->IsModuleContext() ||
|
| - !child->IsModuleContext();
|
| + return context->IsNativeContext() || context->IsGlobalContext() ||
|
| + context->IsModuleContext() || !child->IsModuleContext();
|
| }
|
|
|
|
|
|
|