One function
JavascriptMinify in tikitu/jsmin
The author described this change as “Add fix and test for comment exception case.”. It counts as a record because the check below fails on the code as it stood at ddb48af51 and passes on e51b356f2, with nothing else changed between the two runs.
Projecttikitu/jsmin
Fix saved2013-10-18
Sharing licenceMIT · LICENSE.txt
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
Minify an input stream of javascript, writing to an output stream
The change
| 71 | 71 | write(last) | |
| 72 | 72 | break | |
| 73 | 73 | if doing_multi_comment: | |
| 74 | - | if next1 == '*' and next2 == '/': | |
| 74 | + | if next1 == '*' and next2 == '/' and not previous == '/': | |
| 75 | 75 | doing_multi_comment = False | |
| 76 | 76 | next2 = read(1) | |
| 77 | 77 | elif doing_single_comment: |
The check that tells the two apart
fail→pass·jsmin/test.py::JsTests::testBlockCommentStartingWithSlash
Check file jsmin/test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before itddb48af51cf436014e93b9bd9cc8038c504abdc8
Broken version dated2013-10-12
Modulejsmin.__init__
Units changedJavascriptMinify
Fingerprint329eb987a84ab259
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in tikitu/jsmin
- 2014-10-27Fix for issue #14: handle ECMAScript/Harmony backticks.
- 2013-05-13JavascriptMinify
- 2013-05-10JavascriptMinify