[INFER] Fix bogus assert, bug 658950.

This commit is contained in:
Brian Hackett
2011-05-25 07:54:17 -07:00
parent 25f7de988b
commit 00dc991baf

View File

@@ -1251,7 +1251,7 @@ SendToGenerator(JSContext *cx, JSGeneratorOp op, JSObject *obj,
JSScript *script = gen->floatingFrame()->script();
jsbytecode *yieldpc = gen->regs.pc - JSOP_YIELD_LENGTH;
JS_ASSERT(JSOp(*yieldpc) == JSOP_YIELD);
JS_ASSERT(JSOp(*yieldpc) == JSOP_YIELD || JSOp(*yieldpc) == JSOP_TRAP);
script->typeMonitorUnknown(cx, yieldpc);