Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz
This commit is contained in:
@@ -430,6 +430,7 @@ JavaScriptParent::call(JSContext *cx, HandleObject proxy, const CallArgs &args)
|
||||
if (outparams.Length() != outobjects.length())
|
||||
return ipcfail(cx);
|
||||
|
||||
RootedObject obj(cx);
|
||||
for (size_t i = 0; i < outparams.Length(); i++) {
|
||||
// Don't bother doing anything for outparams that weren't set.
|
||||
if (outparams[i].type() == JSParam::Tvoid_t)
|
||||
@@ -440,7 +441,7 @@ JavaScriptParent::call(JSContext *cx, HandleObject proxy, const CallArgs &args)
|
||||
if (!toValue(cx, outparams[i], &v))
|
||||
return false;
|
||||
|
||||
JSObject *obj = &outobjects[i].toObject();
|
||||
obj = &outobjects[i].toObject();
|
||||
if (!JS_SetProperty(cx, obj, "value", v))
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user