Bug 1127475 - Remove unnecessary parent arguments. r=bz

This commit is contained in:
Tom Schuster
2015-02-13 12:20:02 +01:00
parent 97817a2338
commit 8fe10da3cb
4 changed files with 7 additions and 9 deletions

View File

@@ -400,9 +400,7 @@ WrapperAnswer::RecvCallOrConstruct(const ObjectId &objId,
for (size_t i = 0; i < argv.Length(); i++) {
if (argv[i].type() == JSParam::Tvoid_t) {
// This is an outparam.
JSCompartment *compartment = js::GetContextCompartment(cx);
RootedObject global(cx, JS_GetGlobalForCompartmentOrNull(cx, compartment));
RootedObject obj(cx, xpc::NewOutObject(cx, global));
RootedObject obj(cx, xpc::NewOutObject(cx));
if (!obj)
return fail(cx, rs);
if (!outobjects.append(ObjectValue(*obj)))