diff --git a/js/src/jsparse.c b/js/src/jsparse.c index 22fc3a95378..3054a98954f 100644 --- a/js/src/jsparse.c +++ b/js/src/jsparse.c @@ -2117,6 +2117,8 @@ Statement(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc) case TOK_RETURN: pn = ReturnOrYield(cx, ts, tc, Expr); + if (!pn) + return NULL; break; case TOK_LC: