Bug 1474272 part 3 - Call AssertHeapIsIdleOrIterating instead of AssertHeapIsIdle in JS::GetNonCCWObjectGlobal. r=jonco

This commit is contained in:
Jan de Mooij 2018-08-01 11:25:50 +02:00
parent 73ec31509e
commit cf8288afe6

View File

@ -1266,7 +1266,7 @@ JS::CurrentGlobalOrNull(JSContext* cx)
JS_PUBLIC_API(JSObject*)
JS::GetNonCCWObjectGlobal(JSObject* obj)
{
AssertHeapIsIdle();
AssertHeapIsIdleOrIterating();
MOZ_DIAGNOSTIC_ASSERT(!IsCrossCompartmentWrapper(obj));
return &obj->nonCCWGlobal();
}