mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1474272 part 3 - Call AssertHeapIsIdleOrIterating instead of AssertHeapIsIdle in JS::GetNonCCWObjectGlobal. r=jonco
This commit is contained in:
parent
73ec31509e
commit
cf8288afe6
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user