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

@@ -1242,7 +1242,7 @@ SetUTCTime(JSContext *cx, JSObject *obj, jsdouble t, Value *vp = NULL)
size_t slotCap = JS_MIN(obj->numSlots(), JSObject::DATE_CLASS_RESERVED_SLOTS);
for (size_t ind = JSObject::JSSLOT_DATE_COMPONENTS_START; ind < slotCap; ind++)
obj->getSlotRef(ind).setUndefined();
obj->setSlot(ind, UndefinedValue());
obj->setDateUTCTime(DoubleValue(t));
if (vp)