diff --git a/js/src/jsfriendapi.cpp b/js/src/jsfriendapi.cpp index d0ff5100fe67..8514f3566b59 100644 --- a/js/src/jsfriendapi.cpp +++ b/js/src/jsfriendapi.cpp @@ -1500,5 +1500,5 @@ JS_FRIEND_API(bool) js::SystemZoneAvailable(JSContext* cx) { CooperatingContext& owner = cx->runtime()->gc.systemZoneGroup->ownerContext(); - return owner.context() == cx || owner.context() == nullptr; + return owner.context() == nullptr; }