mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 518731 - Ensure the count of non-hole elements in the array returned by Object.keys(O) is correct. r=mrbkap
This commit is contained in:
parent
20271af76e
commit
d13f5937b4
@ -2094,6 +2094,9 @@ obj_keys(JSContext *cx, uintN argc, jsval *vp)
|
||||
}
|
||||
}
|
||||
|
||||
JS_ASSERT(len <= UINT32_MAX);
|
||||
aobj->fslots[JSSLOT_ARRAY_COUNT] = len;
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user