mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 12:15:51 +00:00
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:
parent
ef6b6ab3b4
commit
3591b40c9c
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user