Bug 1177801 - Remove NewObjectWithProto. r=bhackett
This commit is contained in:
@@ -1006,8 +1006,7 @@ js::CreateThisForFunctionWithProto(JSContext* cx, HandleObject callee, HandleObj
|
||||
|
||||
res = CreateThisForFunctionWithGroup(cx, group, newKind);
|
||||
} else {
|
||||
gc::AllocKind allocKind = NewObjectGCKind(&PlainObject::class_);
|
||||
res = NewObjectWithProto<PlainObject>(cx, proto, allocKind, newKind);
|
||||
res = NewBuiltinClassInstance<PlainObject>(cx, newKind);
|
||||
}
|
||||
|
||||
if (res) {
|
||||
|
||||
Reference in New Issue
Block a user