Remove Root<T>, bug 756823. r=billm
This commit is contained in:
@@ -22,12 +22,12 @@ using namespace js;
|
||||
using namespace js::frontend;
|
||||
|
||||
bool
|
||||
MarkInnerAndOuterFunctions(JSContext *cx, JSScript* script)
|
||||
MarkInnerAndOuterFunctions(JSContext *cx, JSScript* script_)
|
||||
{
|
||||
Root<JSScript*> root(cx, &script);
|
||||
RootedVar<JSScript*> script(cx, script_);
|
||||
|
||||
Vector<JSScript *, 16> worklist(cx);
|
||||
if (!worklist.append(script))
|
||||
if (!worklist.append(script.reference()))
|
||||
return false;
|
||||
|
||||
while (worklist.length()) {
|
||||
|
||||
Reference in New Issue
Block a user