| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r103915 added a parse error for 'more than 2 decimal points' in a number; this is the wrong place to check for that. Should only check whether there's more digits or identifier chars -- identifier chars would be illegal.
Added test cases for the exponent missing fails, tweaked it to be more consistent (only need to check for one e; if we have more we can lump them in with 'not digits' :)
Also cleaned up no-longer-needed suppress/restore warnings around JS parser invocation
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103978
|
|
|
|
|
|
|
| |
Reverts r103931 test change.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103940
|
|
|
|
|
|
|
| |
Added some tests
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103937
|
|
|
|
|
|
|
| |
Adjusting the tests, since it is now adding the newline after the number.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103931
|
|
|
|
|
|
|
|
|
| |
This will trigger 2 test failures, where an exponent in a JS numeric literal gets split over line breaks at the '-' or '+', causing a parse error in the resulting output.
A number with the same string length but without using + or - in the exponent passes through fine, indicating that it's the -/+ that's getting misinterpreted.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
valid Unicode letter characters
Followup r91591, r93020: patch to jsminplus to support Unicode chars and char escapes in identifiers
Fast-path check keeps runtime about the same on most scripts (eg jquery.js parsing was abround 4100ms both before and after on my test machine)
Slow-path code kicks in if plain ASCII word chars don't extend all the way to the next whitespace or punctuation char.
Using PCRE's Unicode properties magic to ensure that we're catching everything, following ECMA-262 edition 5.1 spec.
Note that identifiers using escapes don't get normalized to their UTF-8 form; this might be a nice thing to do as it saves a couple bytes, but currently there's no change made to output.
Added QUnit tests to verify that unicode letter & escapes work in identifiers in all supported browsers (ok back to IE 6, yay)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/98281
|
|
|
|
|
|
|
|
|
|
|
| |
JavaScriptMinifierTest unit test cases. Had to change some of the test cases because they were not valid JavaScript programs -- one of the quoting tests was incorrectly quoted in the PHP sources, and several tests around return, continue, and break keywords failed due to not using them in the contexts that they require.
http://crisp.tweakblogs.net/blog/1856/jsmin+-version-13.html
JSMin+ under MPL 1.1/ GPL 2.0 / LGPL 2.1 license.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91591
|
|
|
|
|
|
|
| |
Copperman
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83934
|
|
|
|
|
|
|
| |
had lying around
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83894
|
|
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/83885
|