Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check upper bounds of message line numbers for code blocks #247

Merged
merged 2 commits into from Apr 1, 2024

Conversation

DMartens
Copy link
Contributor

Fixes #244.
Added an upper guard to make sure the access to block.rangeMap[lineNumber] is defined as well as add a simple test case (I manually set the state via preprocess in the test case and not use the "shared" state from the beforeEach to make this test case clearer).

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me. Can you check the linting error?

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@nzakas nzakas merged commit 00adccb into eslint:main Apr 1, 2024
10 checks passed
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Uncaught undefined for reporting after a code block
2 participants