Bug 742422. Make DOM prototypes more typeinference-friendly. r=peterv

This commit is contained in:
Boris Zbarsky 2012-04-18 12:11:55 -04:00
parent bcae5f47e3
commit 19e5dd0b3b

View File

@ -69,7 +69,8 @@ CreateInterfacePrototypeObject(JSContext* cx, JSObject* global,
JSPropertySpec* properties,
ConstantSpec* constants)
{
JSObject* ourProto = JS_NewObject(cx, protoClass, parentProto, global);
JSObject* ourProto = JS_NewObjectWithUniqueType(cx, protoClass, parentProto,
global);
if (!ourProto) {
return NULL;
}