Skip to content

fix(source-node): skip mappings when source is null or empty string - #557

Open
user-Param wants to merge 6 commits into
mozilla:masterfrom
user-Param:fix/444-sourcenode-null-source
Open

user-Param wants to merge 6 commits into
mozilla:masterfrom
user-Param:fix/444-sourcenode-null-source

Conversation

@user-Param

Copy link
Copy Markdown

Fixes #444 - toStringWithSourceMap was generating mappings (or erroring) when source was null or empty string. The fix skips mapping generation for null/empty sources.

@user-Param

Copy link
Copy Markdown
Author

All 190 tests pass. The fix is minimal and focused. Would appreciate a review!

@user-Param

Copy link
Copy Markdown
Author

@hbenl Could you please review this PR? All 190 tests pass and the fix addresses a real issue. Thank you!

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.

toStringWithSourceMap behaves incorrectly if SourceNodes source is null or is an empty string

2 participants