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 9539c84cd5
commit 00900864c2
32 changed files with 219 additions and 197 deletions

View File

@@ -1241,7 +1241,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)