Root PropertyNodeList.getNames, no bug, r=Ms2ger over irc

This commit is contained in:
David Zbarsky 2013-04-27 15:51:05 -04:00
parent f00457a7a5
commit 6341ecade8

View File

@ -445,7 +445,7 @@ PropertyNodeList::GetValues(JSContext* aCx, nsTArray<JS::Value >& aResult,
{
EnsureFresh();
JSObject* wrapper = GetWrapper();
JS::RootedObject wrapper(aCx, GetWrapper());
JSAutoCompartment ac(aCx, wrapper);
uint32_t length = mElements.Length();
for (uint32_t i = 0; i < length; ++i) {