From 156339d5b5180fd0f281382e2242b7188cba05e3 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Mon, 5 Jun 2006 18:38:14 +0000 Subject: [PATCH] Missing error check/early return for TOK_RETURN refactoring (340369, r=mrbkap). --- js/src/jsparse.c | 2 ++ 1 file changed, 2 insertions(+) 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: