Bug 898621 - Convert ToClampedIndex to take a Handle; r=sfink

--HG--
extra : rebase_source : e35c48ad93c609fdb2e670f34eda718902c5b5ed
This commit is contained in:
Terrence Cole 2013-07-26 12:53:31 -07:00
parent 97883c6923
commit 5d559053a9

View File

@ -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))