Bug 1142296. Remove the parent argument from NewObjectWithGivenProto. r=waldo

This commit is contained in:
Boris Zbarsky
2015-03-14 01:36:16 -04:00
parent eb0879a872
commit b8d2a8311c
25 changed files with 54 additions and 62 deletions

View File

@@ -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;