Chromium Code Reviews| Index: src/parser.h |
| diff --git a/src/parser.h b/src/parser.h |
| index 3315b56201de9687b0995464069ea4c725f2ee3e..1ab7a141be72b526f2a7433e22009050357210a5 100644 |
| --- a/src/parser.h |
| +++ b/src/parser.h |
| @@ -579,7 +579,7 @@ class Parser { |
| return top_scope_->is_extended_mode(); |
| } |
| Scope* DeclarationScope(VariableMode mode) { |
| - return (mode == LET || mode == CONST_HARMONY) |
| + return IsLexicalVariableMode(mode) |
| ? top_scope_ : top_scope_->DeclarationScope(); |
| } |