Bug 477581 - "Assertion failure: !JSVAL_IS_PRIMITIVE(regs.sp[-2]), at ../jsinterp.cpp:3237" with generator on trace. r=brendan.

This commit is contained in:
Jason Orendorff
2009-02-09 14:23:24 -06:00
parent 76fd61d00d
commit 4f417c163b
3 changed files with 13 additions and 6 deletions

View File

@@ -978,8 +978,6 @@ generator_op(JSContext *cx, JSGeneratorOp op, jsval *vp, uintN argc)
}
}
js_LeaveTrace(cx);
arg = ((op == JSGENOP_SEND || op == JSGENOP_THROW) && argc != 0)
? vp[2]
: JSVAL_VOID;