зеркало из https://github.com/mozilla/pjs.git
Bug 676738 - Change the index argument to JS_DeleteElement and JS_DeleteElement2 from jsint to uint32. r=dmandelin
--HG-- extra : rebase_source : 7ee32857d1bd9d85d34f25d3bba4a3bdee2511e1
This commit is contained in:
Родитель
828dbf7621
Коммит
c0692c5214
|
@ -3798,9 +3798,13 @@ JS_DeletePropertyById2(JSContext *cx, JSObject *obj, jsid id, jsval *rval)
|
|||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
JS_DeleteElement2(JSContext *cx, JSObject *obj, jsint index, jsval *rval)
|
||||
JS_DeleteElement2(JSContext *cx, JSObject *obj, uint32 index, jsval *rval)
|
||||
{
|
||||
return JS_DeletePropertyById2(cx, obj, INT_TO_JSID(index), rval);
|
||||
CHECK_REQUEST(cx);
|
||||
jsid id;
|
||||
if (!IndexToId(cx, index, &id))
|
||||
return false;
|
||||
return JS_DeletePropertyById2(cx, obj, id, rval);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
|
@ -3825,7 +3829,7 @@ JS_DeletePropertyById(JSContext *cx, JSObject *obj, jsid id)
|
|||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
JS_DeleteElement(JSContext *cx, JSObject *obj, jsint index)
|
||||
JS_DeleteElement(JSContext *cx, JSObject *obj, uint32 index)
|
||||
{
|
||||
jsval junk;
|
||||
return JS_DeleteElement2(cx, obj, index, &junk);
|
||||
|
|
|
@ -2505,10 +2505,10 @@ extern JS_PUBLIC_API(JSBool)
|
|||
JS_SetElement(JSContext *cx, JSObject *obj, jsint index, jsval *vp);
|
||||
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_DeleteElement(JSContext *cx, JSObject *obj, jsint index);
|
||||
JS_DeleteElement(JSContext *cx, JSObject *obj, uint32 index);
|
||||
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_DeleteElement2(JSContext *cx, JSObject *obj, jsint index, jsval *rval);
|
||||
JS_DeleteElement2(JSContext *cx, JSObject *obj, uint32 index, jsval *rval);
|
||||
|
||||
extern JS_PUBLIC_API(void)
|
||||
JS_ClearScope(JSContext *cx, JSObject *obj);
|
||||
|
|
Загрузка…
Ссылка в новой задаче