Bug 1173344 - Remove an intermediary root from nsXBLProtoImplField's FieldGetterImpl; r=jandem

This commit is contained in:
Ms2ger 2015-06-20 09:16:50 +02:00
parent f676f86358
commit 53af35efa2

View File

@ -245,12 +245,7 @@ FieldGetterImpl(JSContext *cx, JS::CallArgs args)
return true;
}
JS::Rooted<JS::Value> v(cx);
if (!JS_GetPropertyById(cx, thisObj, id, &v)) {
return false;
}
args.rval().set(v);
return true;
return JS_GetPropertyById(cx, thisObj, id, args.rval());
}
static bool