Skip to content

Avoid undefined line in fromStringWithSourceMap #288

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

Merged
merged 1 commit into from
Sep 27, 2017

Conversation

tromey
Copy link
Contributor

@tromey tromey commented Sep 27, 2017

Avoid calling substr on undefined in fromStringWithSourceMap.
This can happen when passing in a source map that refers to lines past
the end of the passed-in string -- caller error, but let's not die.
Fixes #247

Avoid calling substr on `undefined` in `fromStringWithSourceMap`.
This can happen when passing in a source map that refers to lines past
the end of the passed-in string -- caller error, but let's not die.
Fixes mozilla#247
@tromey tromey merged commit 93a6f3a into mozilla:master Sep 27, 2017
@tromey tromey deleted the fix-issue-247 branch September 27, 2017 12:42
@tromey
Copy link
Contributor Author

tromey commented Sep 27, 2017

Self-approving because it's the same as a different patch that I would have ok'd had it not had a merge conflict.

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.

1 participant