Bug 965981 - Wrap ids in XPCWrappedNativeXrayTraits::enumerateNames. r=mccr8

This commit is contained in:
Bobby Holley 2014-02-13 10:54:08 -08:00
parent 1bb0b956eb
commit c5282f5045

View File

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