Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-08-18 | fixes #259: don't unnecessarily quote object properties when --screw-ie8 | Michael Ficarra | |
2013-08-07 | Don't drop unused setter argument. | Mihai Bazon | |
Fix #257 | |||
2013-08-04 | Don't pretend to evaluate lambdas | Mihai Bazon | |
Fix #255 | |||
2013-07-25 | Reverting "added option for dropping unused params" | Mihai Bazon | |
Revert "added option for dropping unused params" (turns out we already had the `unused` option for this.) This reverts commit e54df2226f7f3887d2f850cea8caf5c0353dce00. | |||
2013-07-25 | added option for dropping unused params | Dusan Bartos | |
2013-07-22 | Make `DefaultsError` a real `Error` object | Forbes Lindesay | |
2013-07-18 | Fix output for arrays whose last element is a hole: [1,,] | David Glasser | |
1529ab96 started to do this (by considering holes to be separate from "undefined") but it still converted [1,,] (length 2, last element hole, trailing comma) to [1,] (length 1, trailing comma) Unfortunately the test suite doesn't really make this clear: the new test here passes with or without this patch because run-tests.js beautifys the expected output (in "make_code"), which does the incorrect transformation! If you make some manual change to arrays.js to make the test fail and see the INPUT and OUTPUT, then you can see that without this fix, [1,,] -> [1,], and with this fix it stays [1,,]. | |||
2013-07-15 | Revert previous patch, it was no good. | Mihai Bazon | |
2013-07-15 | Add "position" option to parser, to specify initial pos/line/col | Mihai Bazon | |
(for parsing embedded scripts) | |||
2013-07-14 | Apply transformer to AST_VarDef's name | Mihai Bazon | |
Fix #237 | |||
2013-07-12 | Fix typo. | Mihai Bazon | |
Close #239 | |||
2013-06-07 | Don't swap binary ops when "use asm" is in effect. | Mihai Bazon | |
Refs #167 | |||
2013-06-03 | Escape null characters as \x00 | Ville Lautanala | |
Since \0 might be mistakenly interpreted as octal if followed by a number and using literal null is in some cases interpreted as end of string, escape null as \x00. | |||
2013-05-22 | Add `negate_iife` option to the code generator. | Mihai Bazon | |
See discussion in a9511dfbe5c0d96d8cacb87582aa9a19737bbb98 | |||
2013-05-22 | Set "global" on undeclared SymbolDef-s | Mihai Bazon | |
2013-05-20 | Fix output of statement: `new function(){...};` | Mihai Bazon | |
Close #209 | |||
2013-05-15 | Add `--expr`, an option to parse a single expression (suitable for JSON) | Mihai Bazon | |
2013-05-14 | Only compress code in `new Function` if all arguments are strings. | Mihai Bazon | |
2013-05-14 | Compress code passed to `new Function` if it's a constant. | Mihai Bazon | |
Only for `--unsafe`. Close #203 | |||
2013-05-14 | Fix a["1_1"] | Mihai Bazon | |
Close #204 | |||
2013-05-09 | Use the negation hack rather than parens for a toplevel function expression call | Mihai Bazon | |
(only in !beautify mode) | |||
2013-05-09 | Fix is_assignable | Mihai Bazon | |
(not likely to be noticed, it's only used in `strict` parse mode) | |||
2013-05-08 | Fix property names | Mihai Bazon | |
Close #199 | |||
2013-05-08 | Better fix for equality of typeof ... against "undefined" | Mihai Bazon | |
2013-05-08 | Fixed typeof undefined optimization and updated related test case to | Justin Lau | |
accomodates the sort behaviour changes made in commit mishoo/UglifyJS2@aebafad41eab48f43ed649ce8c77e8f1528b50da. Signed-off-by: Justin Lau <justin@tclau.com> | |||
2013-05-07 | Fixed dot properties not optimizing unicode identifiers. Signed-off-by: ↵ | Justin Lau | |
Justin Lau <justin@tclau.com> | |||
2013-05-05 | Fixed dot property issue with invlid identifier names. | Justin Lau | |
Signed-off-by: Justin Lau <justin@tclau.com> | |||
2013-04-29 | Workaround for missing `prefix` in UnaryExpression generated by Esprima | Mihai Bazon | |
See #193 | |||
2013-04-20 | fixes #189: use dotted member access when --screw-ie8 option given | Michael Ficarra | |
2013-04-03 | Fix typeof evaluation for regex and function | Roman Bataev | |
2013-03-31 | Quote objects with numeric keys | Vladimir Zhuravlev | |
2013-03-31 | Don't use \xYY for identifiers | Mihai Bazon | |
Fix #173 | |||
2013-03-31 | Output, to_ascii: Escape non-ascii chars with \xnn instead of \unnnn ↵ | Andreas Lind Petersen | |
whenever possible. | |||
2013-03-25 | renamed --screw-ie to --screw-ie8, documented it in README.md, indicated it ↵ | Michał Gołębiowski | |
doesn't break IE9+ | |||
2013-03-24 | Add support for enclose option. Closes #139. | Jake Harding | |
2013-03-24 | Don't print the warning on parse error, just throw a JS_Parse_Error. | Mihai Bazon | |
Fix #159 | |||
2013-03-22 | Keep legit code working even when --screw-ie is not passed. | Mihai Bazon | |
Previously: Without `--screw-ie`, UglifyJS would always leak names of function expressions into the containing scope, as if they were function declarations. That was to emulate IE<9 behavior. Code relying on this IE bug would continue to work properly after mangling, although it would only work in IE (since other engines don't share the bug). Sometimes this broke legitimage code (see #153 and #155). With `--screw-ie` the names would not be leaked into the current scope, working properly in legit cases; but still it broke legit code when running in IE<9 (see #24). Currently: Regardless of the `--screw-ie` setting, the names will not be leaked. Code relying on the IE bug will not work properly after mangling. <evil laughter here> Without `--screw-ie`: a hack has been added to the mangler to avoid using the same name for a function expression and some other variable in the same scope. This keeps legit code working, at the (negligible, indeed) cost of one more identifier. With `--screw-ie` you allow the mangler to name function expressions with the same identifier as another variable in scope. After mangling code might break in IE<9. Oh man, the commit message is longer than the patch. Fix #153, #155 | |||
2013-03-13 | Support mangling toplevel names | Mihai Bazon | |
Close #127 | |||
2013-03-11 | Disable `unsafe` by default | Mihai Bazon | |
Close #147 | |||
2013-03-04 | Fix reordering comparisons | Mihai Bazon | |
Close #143 | |||
2013-03-02 | Add `--screw-ie` option | Mihai Bazon | |
For now the implication is that UglifyJS will not leak a function expression's name in the surrounding scope (IE < 9 does that). (ref. mishoo/UglifyJS#485) | |||
2013-03-01 | Drop last `default:` if it's the last branch and empty | Mihai Bazon | |
Close #141 | |||
2013-03-01 | Compress boolean constants after evaluation | Mihai Bazon | |
Close #137 | |||
2013-02-19 | Fix compressing `do {...} while (false)` | Mihai Bazon | |
It's not safe to transform it to {...} because the body might contain `break`. The solution could be more elaborate (detect if body contains `break`) but I don't think it's worth the trouble. Close #129 | |||
2013-02-06 | Force space after literal regexp when used in "instanceof" or "in" | Mihai Bazon | |
Close #118 | |||
2013-02-06 | Give up evaluating (unary-prefix '-' 0) | Mihai Bazon | |
Close #117 ------ JS, WHY YOU SUCK SO BADLY? ;-( | |||
2013-02-06 | Fix parens for NaN | Mihai Bazon | |
Close #116 | |||
2013-02-06 | Fix parens for negative numbers | Mihai Bazon | |
Close #115 | |||
2013-02-06 | Fix parens for AST_New | Mihai Bazon | |
Close #114 | |||
2013-02-06 | Fix handling of constants | Mihai Bazon | |
Close #113 |