Bug 881902 - Remove ContextStack and StackSpace. r=luke,njn
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user