* (bug 32548) fix minification bug when numeric literal with exponent was split over...
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 21 Nov 2011 23:16:36 +0000 (23:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 21 Nov 2011 23:16:36 +0000 (23:16 +0000)
commit3e415f816f6158ea7927bf49198f02877b9ae6c8
treeccaa15c1d7acd6345fe5d01e35b46a1d555453f4
parent480f0c7017f2941415bebff14909035695cebd16
* (bug 32548) fix minification bug when numeric literal with exponent was split over lines

This broke the OpenLayers support in the Maps extension, as used for example on TranslateWiki.net.
The original JavaScriptMinifier's tokenizer (r83885) explicitly didn't bother looking for the exponent part because it "didn't matter" to its internal state machine; however since r83891 added a max line length that definitely is not true.

I've split out handling of hex and decimal numerals, and let the decimal numeral handling check for exponents.

PHPUnit test cases were added in r103846.
includes/libs/JavaScriptMinifier.php