Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PRISM] Fix segv with regex once flag
When you have an interpolated regex with a `once` flag and local variable is outside the block created by the `once` flag, Prism would see a segv. This is because it was not taking the depth into account. To fix this, we need to add 1 to the `local_depth_offset` on the `scope`. Fixes: ruby/prism#2047
- Loading branch information