Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user