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

Missing 'var' in beautify-html.js; breaks strict mode #763

Closed
pekim opened this issue Aug 24, 2015 · 0 comments
Closed

Missing 'var' in beautify-html.js; breaks strict mode #763

pekim opened this issue Aug 24, 2015 · 0 comments
Milestone

Comments

@pekim
Copy link
Contributor

pekim commented Aug 24, 2015

https://github.com/beautify-web/js-beautify/blob/master/js/lib/beautify-html.js#L527

input_char = this.input.charAt(this.pos);
should be
var input_char = this.input.charAt(this.pos);

This breaks when used in a node app, and node is run with --use-strict flag.

@bitwiseman bitwiseman added this to the v1.6.0 milestone Nov 12, 2015
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

2 participants