зеркало из https://github.com/mozilla/pjs.git
Bug 676738 - Change the index argument to JS_AlreadyHasOwnElement from jsint to uint32. r=dmandelin
--HG-- extra : rebase_source : bcf36100f148d7323034fd3a5ac675561788fb7d
This commit is contained in:
Родитель
b6df961a53
Коммит
c15d32fba9
|
@ -3336,9 +3336,13 @@ JS_AlreadyHasOwnPropertyById(JSContext *cx, JSObject *obj, jsid id, JSBool *foun
|
|||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
JS_AlreadyHasOwnElement(JSContext *cx, JSObject *obj, jsint index, JSBool *foundp)
|
||||
JS_AlreadyHasOwnElement(JSContext *cx, JSObject *obj, uint32 index, JSBool *foundp)
|
||||
{
|
||||
return JS_AlreadyHasOwnPropertyById(cx, obj, INT_TO_JSID(index), foundp);
|
||||
CHECK_REQUEST(cx);
|
||||
jsid id;
|
||||
if (!IndexToId(cx, index, &id))
|
||||
return false;
|
||||
return JS_AlreadyHasOwnPropertyById(cx, obj, id, foundp);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(JSBool)
|
||||
|
|
|
@ -2490,8 +2490,7 @@ JS_DefineElement(JSContext *cx, JSObject *obj, uint32 index, jsval value,
|
|||
JSPropertyOp getter, JSStrictPropertyOp setter, uintN attrs);
|
||||
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_AlreadyHasOwnElement(JSContext *cx, JSObject *obj, jsint index,
|
||||
JSBool *foundp);
|
||||
JS_AlreadyHasOwnElement(JSContext *cx, JSObject *obj, uint32 index, JSBool *foundp);
|
||||
|
||||
extern JS_PUBLIC_API(JSBool)
|
||||
JS_HasElement(JSContext *cx, JSObject *obj, jsint index, JSBool *foundp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче