Skip to content

Commit

Permalink
fix(fe): avoid stack overflow with MSVC
Browse files Browse the repository at this point in the history
Adding a pointer member variable to Class_Parser caused
Test_Overflow.parser_depth_limit_exceeded to fail with MSVC. Work around
the failure by lowering the stack limit.
  • Loading branch information
strager committed Sep 23, 2023
1 parent 3642288 commit 4dd3d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quick-lint-js/fe/parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ class Parser {
int depth_ = 0;

// FIXME(#735): We should make this higher.
static constexpr const int stack_limit = 120;
static constexpr const int stack_limit = 110;

// For testing and internal use only.
[[nodiscard]] Loop_Guard enter_loop();
Expand Down

0 comments on commit 4dd3d97

Please sign in to comment.