File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ namespace Js
600600 // because otherwise ETW events might not get fired if a GC doesn't happen
601601 // and the thread context isn't shut down cleanly (process detach case)
602602 this ->MapFunction ([this ](Js::FunctionBody* functionBody) {
603- Assert (functionBody->GetScriptContext () == this );
603+ Assert (functionBody->GetScriptContext () == nullptr || functionBody-> GetScriptContext () == this );
604604 functionBody->Cleanup (/* isScriptContextClosing */ true );
605605 });
606606 }
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ namespace Js
594594 {
595595 memset (this ->m_inlineCaches [i], 0 , sizeof (InlineCache));
596596 }
597- else if (!scriptContext->IsClosed ())
597+ else if (scriptContext != nullptr && !scriptContext->IsClosed ())
598598 {
599599 if (inlineCache->RemoveFromInvalidationList ())
600600 {
You can’t perform that action at this time.
0 commit comments