Chromium Code Reviews| Index: src/parsing/parser.cc |
| diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
| index b3ec0388a9245009f655399b28cc44363aebcacb..c29aeae05a9d4ab4fa51d3313bbab5ed5972befd 100644 |
| --- a/src/parsing/parser.cc |
| +++ b/src/parsing/parser.cc |
| @@ -1891,6 +1891,7 @@ void Parser::DesugarBindingInForEachStatement(ForInfo* for_info, |
| Block** body_block, |
| Expression** each_variable, |
| bool* ok) { |
| + DCHECK(for_info->parsing_result.declarations.length() == 1); |
|
marja
2017/01/06 15:44:29
Unrelated to this CL, but makes sense to add this.
|
| DeclarationParsingResult::Declaration& decl = |
| for_info->parsing_result.declarations[0]; |
| Variable* temp = NewTemporary(ast_value_factory()->dot_for_string()); |