Fix misuse of shape->slot(), bug 703818.

This commit is contained in:
Brian Hackett 2011-11-22 17:44:26 -05:00
parent 74b1236011
commit c26fc2aa88
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
Object.defineProperty(Namespace.prototype, "toString", {
enumerable: true
})

View File

@ -400,7 +400,7 @@ JSObject::getChildProperty(JSContext *cx, Shape *parent, Shape &child)
/* Slots can only be allocated out of order on objects in dictionary mode. */
JS_ASSERT(inDictionaryMode() ||
parent->hasMissingSlot() ||
child.slot() == parent->slot() + 1);
child.slot() == parent->maybeSlot() + 1);
}
}