Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index 3c8ed2bbac4998e01718e5eb5395bf24b898a020..56b40abf987917ad7df9b94180daacba8597ad24 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -5660,6 +5660,7 @@ typename ParserBase<Impl>::StatementT ParserBase<Impl>::ParseStandardForLoop( |
auto result = impl()->DesugarLexicalBindingsInForStatement( |
loop, init, cond, next, body, inner_scope, *for_info, CHECK_OK); |
for_state->set_end_position(scanner()->location().end_pos); |
+ inner_scope->set_end_position(scanner()->location().end_pos); |
return result; |
} |