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(codeframe): Added Math.max to prevent RangeError (#1806) #1807

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

jsmith
Copy link
Contributor

@jsmith jsmith commented Aug 7, 2020

When String(line).length (ie. when the source is >= 1000 lines), then range fails.

Closes #1806
Related to #1804 except this PR uses a max rather than abs.

@yyx990803 yyx990803 merged commit b14f4a5 into vuejs:master Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generateCodeFrame fails for files >= 1000 lines
2 participants