A TOK_LEXICALSCOPE is like a TOK_COLON when deciding whether it has a final return. bug 347559, r=brendan

This commit is contained in:
mrbkap%gmail.com 2006-08-08 18:20:01 +00:00
parent ef6b6ab3b4
commit 3591b40c9c

View File

@ -628,6 +628,7 @@ HasFinalReturn(JSParseNode *pn)
return ENDS_IN_RETURN; return ENDS_IN_RETURN;
case TOK_COLON: case TOK_COLON:
case TOK_LEXICALSCOPE:
return HasFinalReturn(pn->pn_expr); return HasFinalReturn(pn->pn_expr);
case TOK_THROW: case TOK_THROW: