Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 23:41 UTC
Updated:
24 Jun 2012 at 16:14 UTC
When aggregating it appends ';\n' (semicolon and newline) after each file to seperate the scripts. This will fail if the last line is an unclosed comment.
Eg. Krumo from the devel module: devel/krumo/krumo.js ends with a line of //////////////////////////
Fix is to append '\n;\n' (newline semicolon newline) so a comment line won't comment out the semicolon.
| Comment | File | Size | Author |
|---|---|---|---|
| drupal_build_js_cache.patch | 914 bytes | Liam Mitchell |
Comments
Comment #1
dddave commenteddrupal_build_js_cache.patch queued for re-testing.
Comment #3
nod_Generally we don't babysit broken code. Ending a JS file with a comment isn't a very smart move to begin with. If concatenation is enabled it should be given minified scripts to be more effective.