Index: src/parsing/parser-base.h |
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h |
index b2d80664c3d4594c89235d49b6f67a910a1bfdf1..3b9888006e4dbe9dfb36c0ce7d5ae4d0d6577bef 100644 |
--- a/src/parsing/parser-base.h |
+++ b/src/parsing/parser-base.h |
@@ -5194,7 +5194,7 @@ typename ParserBase<Impl>::StatementT ParserBase<Impl>::ParseSwitchStatement( |
{ |
BlockState cases_block_state(zone(), &scope_); |
- scope()->set_start_position(scanner()->location().beg_pos); |
+ scope()->set_start_position(switch_pos); |
scope()->SetNonlinear(); |
typename Types::Target target(this, switch_statement); |