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

--HG--
extra : commitid : 9A0bnmsSNog
This commit is contained in:
Ms2ger 2015-06-20 09:16:50 +02:00
parent 3ab49d883d
commit fe465275e2

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