Bug 881902 - Remove ContextStack and StackSpace. r=luke,njn

This commit is contained in:
Jan de Mooij
2013-06-21 08:28:06 +02:00
parent a614ac6b11
commit 39f9bb0d9f
43 changed files with 702 additions and 1659 deletions

View File

@@ -2590,16 +2590,16 @@ date_toJSON(JSContext *cx, unsigned argc, Value *vp)
}
/* Step 6. */
InvokeArgsGuard ag;
if (!cx->stack.pushInvokeArgs(cx, 0, &ag))
InvokeArgs args2(cx);
if (!args2.init(0))
return false;
ag.setCallee(toISO);
ag.setThis(ObjectValue(*obj));
args2.setCallee(toISO);
args2.setThis(ObjectValue(*obj));
if (!Invoke(cx, ag))
if (!Invoke(cx, args2))
return false;
args.rval().set(ag.rval());
args.rval().set(args2.rval());
return true;
}