This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix Chrome stack overflow during highlighting (#64072)
Using the spread operator with large arrays can trigger a stack overflow in Chrome/V8. For example, see: - nodejs/node#16870 In a highlighting context, we can have 10k-100k occurrences in a file, so let's avoid using the spread operator. Fixes https://linear.app/sourcegraph/issue/GRAPH-772 ## Test plan Manually tested against sample file.  ## Changelog - Fixes a Chrome-specific stack overflow when highlighting large files. (cherry picked from commit 2644e24)
- Loading branch information