Bug 1142296. Remove the parent argument from NewObjectWithGivenProto. r=waldo
This commit is contained in:
@@ -824,7 +824,7 @@ js::CreateItrResultObject(JSContext *cx, HandleValue value, bool done)
|
||||
if (!proto)
|
||||
return nullptr;
|
||||
|
||||
RootedPlainObject obj(cx, NewObjectWithGivenProto<PlainObject>(cx, proto, cx->global()));
|
||||
RootedPlainObject obj(cx, NewObjectWithGivenProto<PlainObject>(cx, proto));
|
||||
if (!obj)
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user