Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary)

This commit is contained in:
Bill McCloskey
2011-07-13 15:43:33 -07:00
parent 7dbaf91b8d
commit 9559dbc15a
32 changed files with 232 additions and 201 deletions

View File

@@ -230,7 +230,7 @@ EnumerateDenseArrayProperties(JSContext *cx, JSObject *obj, JSObject *pobj, uint
if (pobj->getArrayLength() > 0) {
size_t capacity = pobj->getDenseArrayCapacity();
Value *vp = pobj->getDenseArrayElements();
const Value *vp = pobj->getDenseArrayElements();
for (size_t i = 0; i < capacity; ++i, ++vp) {
if (!vp->isMagic(JS_ARRAY_HOLE)) {
/* Dense arrays never get so large that i would not fit into an integer id. */