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 940437dd4f
commit d14f97ae63

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