Backed out changeset 09ffb30caa47

This commit is contained in:
Brian Hackett
2010-09-20 12:05:21 -07:00
parent 7a4d990844
commit 0f7b333058
42 changed files with 1022 additions and 983 deletions

View File

@@ -2563,9 +2563,7 @@ JS_FRIEND_API(JSObject *)
js_NewDateObjectMsec(JSContext *cx, jsdouble msec_time)
{
JSObject *obj = NewBuiltinClassInstance(cx, &js_DateClass);
if (!obj || !obj->ensureSlots(cx, JSObject::DATE_CLASS_RESERVED_SLOTS))
return NULL;
if (!SetUTCTime(cx, obj, msec_time))
if (!obj || !SetUTCTime(cx, obj, msec_time))
return NULL;
return obj;
}