Bug 1127475 - Remove unnecessary parent arguments. r=bz
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user