Bug 1521732 - Part 5: RootedObjectVector. r=sfink,jonco

s/AutoObjectVector/RootedObjectVector/g

Depends on D23185

Differential Revision: https://phabricator.services.mozilla.com/D23186
This commit is contained in:
Yoshi Cheng-Hao Huang
2019-03-26 14:00:51 +00:00
parent 37774c7dc2
commit c90ee83c1d
42 changed files with 125 additions and 120 deletions

View File

@@ -984,7 +984,7 @@ bool _evaluate(NPP npp, NPObject *npobj, NPString *script, NPVariant *result) {
JS::CompileOptions options(cx);
options.setFileAndLine(spec, 0);
JS::Rooted<JS::Value> rval(cx);
JS::AutoObjectVector scopeChain(cx);
JS::RootedVector<JSObject*> scopeChain(cx);
if (!JS_IsGlobalObject(obj) && !scopeChain.append(obj)) {
return false;
}