mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 742422. Make DOM prototypes more typeinference-friendly. r=peterv
This commit is contained in:
parent
bcae5f47e3
commit
19e5dd0b3b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user