Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz

This commit is contained in:
Jon Coppeard
2013-07-26 10:00:38 +01:00
parent 9a8036dfc5
commit 7ab147be05
25 changed files with 81 additions and 83 deletions

View File

@@ -414,7 +414,7 @@ JavaScriptChild::AnswerSet(const ObjectId &objId, const ObjectId &receiverId, co
if (!toValue(cx, value, &val))
return fail(cx, rs);
if (!JS_SetPropertyById(cx, obj, internedId, &val))
if (!JS_SetPropertyById(cx, obj, internedId, val))
return fail(cx, rs);
if (!toVariant(cx, val, result))