Bug 542864 - Convert the right variable to an id. r=jorendorff

This commit is contained in:
Blake Kaplan 2010-02-26 17:06:23 -08:00
Родитель 4b7c35b234
Коммит 5403745994
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2549,7 +2549,7 @@ split_addProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
return JS_TRUE;
if (!cpx->isInner && cpx->inner) {
/* Make sure to define this property on the inner object. */
if (!JS_ValueToId(cx, *vp, &asId))
if (!JS_ValueToId(cx, id, &asId))
return JS_FALSE;
return JS_DefinePropertyById(cx, cpx->inner, asId, *vp, NULL, NULL, JSPROP_ENUMERATE);
}