mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898621 - Convert ToClampedIndex to take a Handle; r=sfink
--HG-- extra : rebase_source : e35c48ad93c609fdb2e670f34eda718902c5b5ed
This commit is contained in:
parent
e705902d33
commit
b1b102981a
@ -98,7 +98,7 @@ ValueIsLength(const Value &v, uint32_t *len)
|
||||
* the output value is in the range [0, length].
|
||||
*/
|
||||
static bool
|
||||
ToClampedIndex(JSContext *cx, const Value &v, uint32_t length, uint32_t *out)
|
||||
ToClampedIndex(JSContext *cx, HandleValue v, uint32_t length, uint32_t *out)
|
||||
{
|
||||
int32_t result;
|
||||
if (!ToInt32(cx, v, &result))
|
||||
|
Loading…
Reference in New Issue
Block a user