Bug 484751 - Followup patch to fix crash in initial checkin, r=mrbkap.

This commit is contained in:
Graydon Hoare
2009-03-31 19:34:32 -07:00
parent 2e9310444c
commit 59e086f8e6

View File

@@ -2037,7 +2037,6 @@ CreateMapForObject(JSContext* cx, JSObject* obj, JSObject* proto, JSObjectOps* o
{
/* Share the given prototype's map. */
obj->map = js_HoldObjectMap(cx, map);
obj->dslots = NULL;
return true;
}
@@ -2076,6 +2075,7 @@ NewNativeObject(JSContext* cx, JSObject* proto, JSObject *parent)
if (!CreateMapForObject(cx, obj, proto, &js_ObjectOps))
return NULL;
obj->dslots = NULL;
return obj;
}