Rename RootedVar to Rooted, bug 756823. r=billm

This commit is contained in:
Brian Hackett
2012-05-24 16:05:18 -07:00
parent f4fa29d00b
commit 662da160da
84 changed files with 1187 additions and 1187 deletions

View File

@@ -24,7 +24,7 @@ using namespace js::frontend;
bool
MarkInnerAndOuterFunctions(JSContext *cx, JSScript* script_)
{
RootedVar<JSScript*> script(cx, script_);
Rooted<JSScript*> script(cx, script_);
Vector<JSScript *, 16> worklist(cx);
if (!worklist.append(script.reference()))
@@ -243,7 +243,7 @@ frontend::CompileScript(JSContext *cx, JSObject *scopeChain, StackFrame *callerF
JS_ASSERT(bce.version() == version);
RootedVar<JSScript*> script(cx);
Rooted<JSScript*> script(cx);
script = JSScript::NewScriptFromEmitter(cx, &bce);
if (!script)
return NULL;