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

Add test case with control character #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

poroszd
Copy link

@poroszd poroszd commented Aug 21, 2019

The mox-worker item #3656 happens because there is a \x13 control character in the source map json.
It happens when the angular-1.4.5.js source content is included in the source map, but strangely in the source map there is a \x13 character on the position where there is a \xe2\x80\x93 in the original source.

In the test case I added a js source containing both characters, minified it by
uglifyjs control_character.js -m --source-map includeSources -o control_character.min.js
and load the source map as a json. It succeeds, because the minification escaped the control character properly.

See more in ch54099

The mox-worker item #3656 happens because there is a \x13 control character in the source map json.
It happens when the angular-1.4.5.js source content is included in the source map, but strangely in the
source map there is a \x13 character on the position where there is a \xe2\x80\x93 in the original source.

In the test case I added a js source containing both characters, minified it by
`uglifyjs control_character.js -m --source-map includeSources -o control_character.min.js`
and load the source map as a json. It succeeds, because the minification escaped the control character properly.
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