[js] Get the class pointer from the ObjectGroup...
parent
8ff611b3e7
commit
e9004db372
|
@ -646,7 +646,10 @@ class NativeObject : public ShapedObject
|
||||||
uint32_t slotSpan() const {
|
uint32_t slotSpan() const {
|
||||||
if (inDictionaryMode())
|
if (inDictionaryMode())
|
||||||
return lastProperty()->base()->slotSpan();
|
return lastProperty()->base()->slotSpan();
|
||||||
return lastProperty()->slotSpan();
|
|
||||||
|
// Get the class from the object group rather than the base shape to avoid a
|
||||||
|
// race between Shape::ensureOwnBaseShape and background sweeping.
|
||||||
|
return lastProperty()->slotSpan(getClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Whether a slot is at a fixed offset from this object. */
|
/* Whether a slot is at a fixed offset from this object. */
|
||||||
|
|
Loading…
Reference in New Issue