emscripten
emscripten copied to clipboard
Fix concatenating --pre-js files even if one of the input files has a // comment on the last line
Looks like we lost the actual fix someshow?
It looks like the debug comments that have been added in main have a side-effect of applying the fix.
Looks like we lost the actual fix someshow?
It looks like the debug comments that have been added in main have a side-effect of applying the fix.
Perhaps we can verify that a newline is implicitly added to the EOF?
Can you assert that the output file contains // a not so innocent comment\n (i.e. include that the newline in the check)?
I would still consider it a (minor) bug if the output contained two comments that run together like this:
// a not so innocent comment// end include: pre.js
Closing old stale PR.