Restore correct form of assertion removed by last rev.

This commit is contained in:
brendan%mozilla.org 2002-09-13 22:32:59 +00:00
parent aa8c622859
commit fb67784b9c

View File

@ -1773,6 +1773,7 @@ EmitElemOp(JSContext *cx, JSParseNode *pn, JSOp op, JSCodeGenerator *cg)
top = CG_OFFSET(cg);
if (pn->pn_arity == PN_LIST) {
/* Left-associative operator chain to avoid too much recursion. */
JS_ASSERT(pn->pn_op == JSOP_GETELEM);
JS_ASSERT(pn->pn_count >= 3);
left = pn->pn_head;
right = PN_LAST(pn);