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

Variable name is not encoded correctly #221

Open
omelancon opened this issue Sep 27, 2021 · 0 comments
Open

Variable name is not encoded correctly #221

omelancon opened this issue Sep 27, 2021 · 0 comments

Comments

@omelancon
Copy link

omelancon commented Sep 27, 2021

In some very specific cases which I was unable to pinpoint exactly, variable names are not encoded correctly in the target bundle. Example:

test.html:

<script src="test.js"></script>

test.js

function ( nl ) {
  var nl = 1;
}

Result of inline test.html:

<script>function (~~s
s~~) {
  var~~s
s~~= 1;
}</script> 

The sequence of characters " nl " (spaces included) is converted to "~~s\ns~~" which is not a valid syntax.

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

No branches or pull requests

1 participant