зеркало из https://github.com/mozilla/gecko-dev.git
Bug 868266. Root the arguments list in nsObjectLoadingContent::LegacyCall. r=terrence
This commit is contained in:
Родитель
4e24b17081
Коммит
2f61b956d6
|
@ -2875,6 +2875,7 @@ nsObjectLoadingContent::LegacyCall(JSContext* aCx,
|
|||
// Now wrap things up into the compartment of "obj"
|
||||
JSAutoCompartment ac(aCx, obj);
|
||||
nsTArray<JS::Value> args(aArguments);
|
||||
JS::AutoArrayRooter rooter(aCx, args.Length(), args.Elements());
|
||||
for (JS::Value *arg = args.Elements(), *arg_end = arg + args.Length();
|
||||
arg != arg_end;
|
||||
++arg) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче