зеркало из https://github.com/mozilla/gecko-dev.git
Bug 542864 - Convert the right variable to an id. r=jorendorff
This commit is contained in:
Родитель
4b7c35b234
Коммит
5403745994
|
@ -2549,7 +2549,7 @@ split_addProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||||
return JS_TRUE;
|
return JS_TRUE;
|
||||||
if (!cpx->isInner && cpx->inner) {
|
if (!cpx->isInner && cpx->inner) {
|
||||||
/* Make sure to define this property on the inner object. */
|
/* 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_FALSE;
|
||||||
return JS_DefinePropertyById(cx, cpx->inner, asId, *vp, NULL, NULL, JSPROP_ENUMERATE);
|
return JS_DefinePropertyById(cx, cpx->inner, asId, *vp, NULL, NULL, JSPROP_ENUMERATE);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче