Move JSObject::parent to BaseShape, bug 638316.
This commit is contained in:
@@ -1338,7 +1338,8 @@ JSObject::makeDenseArraySlow(JSContext *cx)
|
||||
|
||||
/* Create a native scope. */
|
||||
gc::AllocKind kind = getAllocKind();
|
||||
if (!InitScopeForObject(cx, this, &SlowArrayClass, getProto()->getNewType(cx), kind)) {
|
||||
if (!InitScopeForObject(cx, this, &SlowArrayClass, oldShape->getObjectParent(),
|
||||
getProto()->getNewType(cx), kind)) {
|
||||
setLastPropertyInfallible(oldShape);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user