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
1bb0b956eb
commit
c5282f5045
@ -1007,6 +1007,8 @@ XPCWrappedNativeXrayTraits::enumerateNames(JSContext *cx, HandleObject wrapper,
|
||||
if (!js::GetPropertyNames(cx, target, flags, &wnProps))
|
||||
return false;
|
||||
}
|
||||
if (!JS_WrapAutoIdVector(cx, wnProps))
|
||||
return false;
|
||||
|
||||
// Go through the properties we got and enumerate all native ones.
|
||||
for (size_t n = 0; n < wnProps.length(); ++n) {
|
||||
|
Loading…
Reference in New Issue
Block a user