wiki.techinc.nl/tests/phpunit/data/resourceloader/script-comment-nonl.js
Fomafix ff7f41f928 resourceloader: Append newline to JavaScript only if missing
In debug mode of a packageFiles module there is now only one newline
between the JavaScript code and the closing }.

This change reuses ResourceLoader::ensureNewline and make this to a
interal public static function.

Change-Id: I89519896e3dc56d966c4a63102904686bff6fac9
2021-08-28 12:25:11 +00:00

3 lines
No EOL
42 B
JavaScript

/* eslint-disable */
mw.foo()
// mw.bar();