Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
4.5.0
-
None
Description
I've put
{ezscript_require('jslint.js'} with jslint.js from:
https://github.com/douglascrockford/JSLint/blob/master/jslint.js
But ezscript has dropped some js code from jslint.js, after the default cleaning process.
Here is some js code in jslint.js:
[...] source_row = ''; break; // /* comment [...] loop: for (;;) { for (;;) { if (next_token.id === '*/') { break loop; } [...]
and as a result, ezscript has dropped everything betwen /* and */ without checking the validity as really starter and finisher of a comment
Resulting cleaned code by ezscript is then (wrong code):
[...] source_row = ''; break; [here is the part of code dropped] break loop; } [...]
Yes I know it's a bug hard to correct, I just report this problem as it may occur...
Attachments
Issue Links
- relates to
-
EZP-19154 ezjscore JS optimizer breaks JS with mixed single and multiline comments
- Open