diff options
Diffstat (limited to 'js/src/jsfriendapi.h')
-rw-r--r-- | js/src/jsfriendapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsfriendapi.h b/js/src/jsfriendapi.h index b1c7cb0dcb..7220855491 100644 --- a/js/src/jsfriendapi.h +++ b/js/src/jsfriendapi.h @@ -761,7 +761,7 @@ SetReservedSlot(JSObject* obj, size_t slot, const JS::Value& value) { MOZ_ASSERT(slot < JSCLASS_RESERVED_SLOTS(GetObjectClass(obj))); shadow::Object* sobj = reinterpret_cast<shadow::Object*>(obj); - if (sobj->slotRef(slot).isMarkable() || value.isMarkable()) + if (sobj->slotRef(slot).isGCThing() || value.isGCThing()) SetReservedOrProxyPrivateSlotWithBarrier(obj, slot, value); else sobj->slotRef(slot) = value; |