mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965981 - Wrap ids in XPCWrappedNativeXrayTraits::enumerateNames. r=mccr8
This commit is contained in:
parent
73ce31f07f
commit
d11531d2a6
@ -1007,6 +1007,8 @@ XPCWrappedNativeXrayTraits::enumerateNames(JSContext *cx, HandleObject wrapper,
|
|||||||
if (!js::GetPropertyNames(cx, target, flags, &wnProps))
|
if (!js::GetPropertyNames(cx, target, flags, &wnProps))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!JS_WrapAutoIdVector(cx, wnProps))
|
||||||
|
return false;
|
||||||
|
|
||||||
// Go through the properties we got and enumerate all native ones.
|
// Go through the properties we got and enumerate all native ones.
|
||||||
for (size_t n = 0; n < wnProps.length(); ++n) {
|
for (size_t n = 0; n < wnProps.length(); ++n) {
|
||||||
|
Loading…
Reference in New Issue
Block a user