From 2ac6931a92959f6696cfbf593781f8d7fecf492c Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Wed, 23 Aug 2006 04:19:17 +0000 Subject: [PATCH] Fixed bogus assertion (349818). --- js/src/jsparse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/jsparse.c b/js/src/jsparse.c index d714993b9b5..2b0d3cde0e6 100644 --- a/js/src/jsparse.c +++ b/js/src/jsparse.c @@ -3227,7 +3227,8 @@ Statement(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc) return pn; /* Let expressions require automatic semicolon insertion. */ - JS_ASSERT(pn->pn_op == JSOP_LEAVEBLOCKEXPR); + JS_ASSERT(pn->pn_type == TOK_SEMI || + pn->pn_op == JSOP_LEAVEBLOCKEXPR); break; }