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

This commit is contained in:
Bobby Holley 2014-02-13 10:54:08 -08:00
Родитель 26295823eb
Коммит 74dced0ef3
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

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