63e1a8e | Mihai Bazon | 23 October 2013, 20:58:09 UTC | Merge pull request #323 from rvanvelzen/undefined-drop-vars-fix Fix #280 | 23 October 2013, 20:58:09 UTC |
7055af8 | Richard van Velzen | 23 October 2013, 20:26:04 UTC | Fix #280 The `init` of the `ForStatement` is not a `BlockStatement` before it was descended. The descend has to happen first, and *then* the actual checks. | 23 October 2013, 20:26:04 UTC |
aafe2e1 | Mihai Bazon | 23 October 2013, 18:37:36 UTC | Merge pull request #322 from rvanvelzen/test-exit-code-1 Add an exit code to the test suite | 23 October 2013, 18:37:36 UTC |
118105d | Richard van Velzen | 23 October 2013, 18:24:58 UTC | Add an exit code to the test suite By adding the exit code 1 (or any other non-zero exit code) `npm test` will know the tests didn't perform correctly. This way it's easier to know if pull requests are good or bad. | 23 October 2013, 18:24:58 UTC |
63d04ff | Mihai Bazon | 22 October 2013, 18:49:33 UTC | Revert #3a81f60 for now (with it some tests break and it can generate invalid output, see issue #44) | 22 October 2013, 18:50:55 UTC |
8c9cc92 | Mihai Bazon | 22 October 2013, 18:31:01 UTC | v2.4.1 | 22 October 2013, 18:31:01 UTC |
d09f0ad | Mihai Bazon | 17 October 2013, 15:20:33 UTC | `arguments` outside of a function is an ordinary variable. Fix #501 | 17 October 2013, 15:20:33 UTC |
3fa9265 | Mihai Bazon | 09 October 2013, 19:15:43 UTC | wrap up | 09 October 2013, 19:15:43 UTC |
3a81f60 | Mihai Bazon | 09 October 2013, 16:15:09 UTC | Don't drop_unused before compression. Fix #280, #282 | 09 October 2013, 16:15:09 UTC |
f2348dd | Mihai Bazon | 04 October 2013, 10:17:25 UTC | Rename clean_getters to pure_getters; add pure_funcs. | 04 October 2013, 10:17:25 UTC |
253c7c2 | Mihai Bazon | 04 October 2013, 07:13:52 UTC | Merge pull request #308 from meteor/fix-unicode-keys Only allow identifier start characters at the beginning of identifiers. | 04 October 2013, 07:13:52 UTC |
bb0a762 | David Glasser | 04 October 2013, 00:02:19 UTC | Only allow identifier start characters at the beginning of identifiers. Without this fix, the following source: x = {"\u200c": 42}; would incorrectly be converted into a quoteless key. But while \u200c is allowed to be in identifiers, it cannot be at the beginning, as per ES5. (For example, the SockJS client library doesn't work under uglify starting with d9ad3c7c.) | 04 October 2013, 00:02:19 UTC |
8cc86fe | Mihai Bazon | 02 October 2013, 16:33:45 UTC | add `clean_getters` compressor option (default `false`) allows one to specify if `foo.bar` is considered to have side effects. | 02 October 2013, 16:38:01 UTC |
88fb83a | Mihai Bazon | 02 October 2013, 12:31:31 UTC | minor optimization unlikely to help in hand-written code: (something() ? foo : bar) == foo ==> something() | 02 October 2013, 12:31:31 UTC |
95b4507 | Mihai Bazon | 30 September 2013, 08:49:29 UTC | Fix error in the output minifying `Function("return this")()` | 30 September 2013, 08:49:29 UTC |
afdaeba | Mihai Bazon | 22 September 2013, 12:26:10 UTC | More attempts to determine when addition is associative Somebody hit me with bug reports on this. :) Refs #300 | 22 September 2013, 12:26:10 UTC |
037199b | Mihai Bazon | 22 September 2013, 11:54:32 UTC | Actually let's move away those monsters from the evaluate function ev() should do a single thing — evaluate constant expressions. if that's not possible, just return the original node. it's not the best place for partial evaluation there, instead doing it in the compress functions. | 22 September 2013, 12:00:42 UTC |
583fac0 | Mihai Bazon | 22 September 2013, 10:12:34 UTC | More dirty handling of [ ... ].join() in unsafe mode Close #300 | 22 September 2013, 10:14:42 UTC |
e815827 | Dan Wolff | 20 September 2013, 04:24:25 UTC | Evaluate [...].join() if possible: minor bugfix Follow-up to 78e98d2. | 22 September 2013, 08:34:30 UTC |
78e98d2 | Mihai Bazon | 19 September 2013, 15:20:45 UTC | When `unsafe` is set, evaluate [...].join() if possible Close #298 | 19 September 2013, 15:20:45 UTC |
8d14efe | Dan Wolff | 19 September 2013, 08:58:50 UTC | Concatenate strings also on the right-hand side of an expression that cannot be evaluated. Fix #126 E.g. converts: a+'Hello'+'World' to a+'HelloWorld' | 19 September 2013, 10:03:03 UTC |
83ba338 | Mihai Bazon | 06 September 2013, 07:10:45 UTC | Avoid printing <!-- in the output (HTML5 comment) | 06 September 2013, 07:10:45 UTC |
7c10b25 | Mihai Bazon | 06 September 2013, 06:54:30 UTC | Support HTML5 comment syntax (enabled by default!) See http://javascript.spec.whatwg.org/#comment-syntax https://github.com/mishoo/UglifyJS/issues/503 https://github.com/marijnh/acorn/issues/62 | 06 September 2013, 06:54:30 UTC |
cb9d16f | Mihai Bazon | 06 September 2013, 06:52:56 UTC | minor | 06 September 2013, 06:52:56 UTC |
5d8da86 | Mihai Bazon | 02 September 2013, 16:38:00 UTC | Fix names. | 02 September 2013, 16:38:00 UTC |
85b527b | Mihai Bazon | 02 September 2013, 16:36:16 UTC | Disallow `continue` referring to a non-IterationStatement. Fix #287 Simplifies handling of labels (their definition/references can be easily figured out at parse time, no need to do it in `figure_out_scope`). | 02 September 2013, 16:36:16 UTC |
1c6efda | Mihai Bazon | 02 September 2013, 08:36:48 UTC | Better fix for #286 | 02 September 2013, 08:36:48 UTC |
b0ca896 | Mihai Bazon | 02 September 2013, 08:09:54 UTC | Fix parsing `a.case /= 1` Close #286 | 02 September 2013, 08:09:54 UTC |
78a217b | Mihai Bazon | 02 September 2013, 06:56:27 UTC | Fix parsing regexp after unary-prefix operator ++/x/.y Fix #284 | 02 September 2013, 06:56:27 UTC |
a89d233 | Mihai Bazon | 02 September 2013, 06:55:34 UTC | Better reporting of parse errors | 02 September 2013, 06:55:34 UTC |
c28e1a0 | Mihai Bazon | 22 August 2013, 12:06:42 UTC | v2.4.0 | 22 August 2013, 12:06:42 UTC |
1a95007 | Mihai Bazon | 22 August 2013, 07:10:25 UTC | Remove --ie-proof from the readme. Fix #276 | 22 August 2013, 07:10:25 UTC |
ed80b4a | Mihai Bazon | 20 August 2013, 14:45:52 UTC | Move support for `negate_iife` in the compressor, rather than code generator (the code generator doesn't maintain enough context to know whether the return value is important or discarded) Fixes #272 | 20 August 2013, 14:45:52 UTC |
4f09df2 | Mihai Bazon | 19 August 2013, 07:21:08 UTC | Merge pull request #270 from michaelficarra/GH-259 fixes #259: don't unnecessarily quote object properties when --screw-ie8 | 19 August 2013, 07:21:08 UTC |
d9ad3c7 | Michael Ficarra | 19 August 2013, 00:45:06 UTC | fixes #259: don't unnecessarily quote object properties when --screw-ie8 | 19 August 2013, 00:45:06 UTC |
6ea3f7f | Mihai Bazon | 08 August 2013, 06:15:13 UTC | fix usage | 08 August 2013, 06:15:13 UTC |
4c4dc21 | Mihai Bazon | 07 August 2013, 09:04:58 UTC | Don't drop unused setter argument. Fix #257 | 07 August 2013, 09:04:58 UTC |
4aa4b3e | Mihai Bazon | 07 August 2013, 08:43:47 UTC | Support `-p relative`. Fix #256 | 07 August 2013, 08:43:47 UTC |
2604aad | Forbes Lindesay | 01 August 2013, 04:51:09 UTC | Add support for browserify | 07 August 2013, 08:21:30 UTC |
964d5b9 | Mihai Bazon | 04 August 2013, 18:44:17 UTC | Don't pretend to evaluate lambdas Fix #255 | 04 August 2013, 18:44:17 UTC |
b7adbca | Mihai Bazon | 30 July 2013, 09:16:29 UTC | Fix #251 | 30 July 2013, 09:16:29 UTC |
3435af4 | Mihai Bazon | 28 July 2013, 08:11:11 UTC | Don't require arguments to --enclose | 28 July 2013, 08:11:11 UTC |
41c6273 | Mihai Bazon | 25 July 2013, 15:08:36 UTC | Reverting "added option for dropping unused params" Revert "added option for dropping unused params" (turns out we already had the `unused` option for this.) This reverts commit e54df2226f7f3887d2f850cea8caf5c0353dce00. | 25 July 2013, 15:08:36 UTC |
e54df22 | Dusan Bartos | 25 July 2013, 13:32:21 UTC | added option for dropping unused params | 25 July 2013, 14:37:47 UTC |
dfa395f | Forbes Lindesay | 22 July 2013, 00:44:03 UTC | Make `DefaultsError` a real `Error` object | 22 July 2013, 00:44:03 UTC |
b1febde | David Glasser | 16 January 2013, 19:59:19 UTC | Fix output for arrays whose last element is a hole: [1,,] 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,,]. | 18 July 2013, 12:39:22 UTC |
193049a | Mihai Bazon | 15 July 2013, 08:59:23 UTC | Revert previous patch, it was no good. | 15 July 2013, 08:59:23 UTC |
4a0bab0 | Mihai Bazon | 15 July 2013, 08:27:11 UTC | Add "position" option to parser, to specify initial pos/line/col (for parsing embedded scripts) | 15 July 2013, 08:27:11 UTC |
9243b0c | Mihai Bazon | 14 July 2013, 10:24:09 UTC | Apply transformer to AST_VarDef's name Fix #237 | 14 July 2013, 10:24:09 UTC |
fc9ba32 | Mihai Bazon | 12 July 2013, 06:56:58 UTC | Fix typo. Close #239 | 12 July 2013, 06:56:58 UTC |
d0689c8 | Mihai Bazon | 28 June 2013, 07:08:13 UTC | Reset the base54 counters every time minify is called. Close #229 | 28 June 2013, 07:08:13 UTC |
02a8438 | Mihai Bazon | 07 June 2013, 09:51:23 UTC | Don't swap binary ops when "use asm" is in effect. Refs #167 | 07 June 2013, 09:52:09 UTC |
a4889a0 | Mihai Bazon | 03 June 2013, 18:10:14 UTC | Merge pull request #220 from lautis/escape-null Escape null characters as \x00 | 03 June 2013, 18:10:14 UTC |
f29f07a | Ville Lautanala | 03 June 2013, 17:18:42 UTC | Escape null characters as \x00 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. | 03 June 2013, 17:46:42 UTC |
188e28e | Mihai Bazon | 23 May 2013, 20:42:32 UTC | v2.3.6 | 23 May 2013, 20:42:32 UTC |
2df4892 | Mihai Bazon | 22 May 2013, 18:30:54 UTC | Merge pull request #213 from mattrobenolt/patch-1 SourceMapping pragma has changed to //# | 22 May 2013, 18:30:54 UTC |
9fc6796 | Mihai Bazon | 22 May 2013, 18:22:14 UTC | Add `negate_iife` option to the code generator. See discussion in a9511dfbe5c0d96d8cacb87582aa9a19737bbb98 | 22 May 2013, 18:22:14 UTC |
9fc8a52 | Mihai Bazon | 22 May 2013, 10:08:19 UTC | Set "global" on undeclared SymbolDef-s | 22 May 2013, 10:08:19 UTC |
3a21861 | Matt Robenolt | 21 May 2013, 14:50:21 UTC | The extra /* */ isn't needed now | 21 May 2013, 14:50:21 UTC |
1dbffd4 | Matt Robenolt | 21 May 2013, 14:46:27 UTC | SourceMapping pragma has changed to //# See: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit The spec was updated on May 16th since `//@` was causing some issues with IE. | 21 May 2013, 14:46:27 UTC |
22a038e | Mihai Bazon | 20 May 2013, 05:27:37 UTC | Fix output of statement: `new function(){...};` Close #209 | 20 May 2013, 05:27:37 UTC |
f652372 | Mihai Bazon | 19 May 2013, 11:25:05 UTC | v2.3.5 | 19 May 2013, 11:25:05 UTC |
ad1fc3b | Mihai Bazon | 19 May 2013, 11:24:33 UTC | Fix package.json (use `repository` instead of `repositories`) | 19 May 2013, 11:24:33 UTC |
2b40a5a | Mihai Bazon | 15 May 2013, 10:27:40 UTC | v2.3.4 | 15 May 2013, 10:27:40 UTC |
ca3388c | Mihai Bazon | 15 May 2013, 10:27:23 UTC | Add `--expr`, an option to parse a single expression (suitable for JSON) | 15 May 2013, 10:27:23 UTC |
caa8896 | Mihai Bazon | 14 May 2013, 15:36:31 UTC | Only compress code in `new Function` if all arguments are strings. | 14 May 2013, 15:36:31 UTC |
d13aa39 | Mihai Bazon | 14 May 2013, 08:33:28 UTC | v2.3.3 | 14 May 2013, 08:33:28 UTC |
f64539f | Mihai Bazon | 14 May 2013, 07:47:06 UTC | Compress code passed to `new Function` if it's a constant. Only for `--unsafe`. Close #203 | 14 May 2013, 07:47:06 UTC |
d56ebd7 | Mihai Bazon | 14 May 2013, 07:41:28 UTC | Fix a["1_1"] Close #204 | 14 May 2013, 07:42:34 UTC |
3edfe7d | Mihai Bazon | 10 May 2013, 09:56:24 UTC | Merge pull request #202 from nschonni/add-travis-ci Add CI build for supported Node versions | 10 May 2013, 09:56:24 UTC |
7f77eda | Mihai Bazon | 09 May 2013, 05:58:55 UTC | v2.3.2 | 09 May 2013, 05:58:55 UTC |
a9511df | Mihai Bazon | 09 May 2013, 05:58:47 UTC | Use the negation hack rather than parens for a toplevel function expression call (only in !beautify mode) | 09 May 2013, 05:58:47 UTC |
064e7aa | Mihai Bazon | 09 May 2013, 05:44:24 UTC | Fix is_assignable (not likely to be noticed, it's only used in `strict` parse mode) | 09 May 2013, 05:44:24 UTC |
46814f8 | Nick Schonning | 09 May 2013, 03:48:12 UTC | Add Travis build badge to README | 09 May 2013, 03:48:12 UTC |
4a19802 | Nick Schonning | 09 May 2013, 03:42:06 UTC | Add CI build for supported Node versions | 09 May 2013, 03:42:06 UTC |
1e9f98a | Trey Griffith | 08 May 2013, 19:29:46 UTC | add a test for zero-length string in is_identifier_string, which is used in property compression. Also added a test exercising the change. | 08 May 2013, 19:43:20 UTC |
11e24d5 | Mihai Bazon | 08 May 2013, 19:37:48 UTC | Fix property names Close #199 | 08 May 2013, 19:37:48 UTC |
0f509f8 | Mihai Bazon | 08 May 2013, 13:45:36 UTC | v2.3.1 | 08 May 2013, 13:45:36 UTC |
a6ed2c8 | Mihai Bazon | 08 May 2013, 13:22:39 UTC | Better fix for equality of typeof ... against "undefined" | 08 May 2013, 13:22:48 UTC |
a1958aa | Justin Lau | 05 May 2013, 12:38:32 UTC | Fixed typeof undefined optimization and updated related test case to accomodates the sort behaviour changes made in commit mishoo/UglifyJS2@aebafad41eab48f43ed649ce8c77e8f1528b50da. Signed-off-by: Justin Lau <justin@tclau.com> | 08 May 2013, 13:22:48 UTC |
6726996 | Justin Lau | 05 May 2013, 11:54:27 UTC | Added test cases for #104. Signed-off-by: Justin Lau <justin@tclau.com> | 08 May 2013, 13:22:48 UTC |
645d5bd | Mihai Bazon | 08 May 2013, 12:51:52 UTC | Merge pull request #195 from kjbekkelund/typo Fix typo in bin and readme | 08 May 2013, 12:51:52 UTC |
9af2bbf | Justin Lau | 05 May 2013, 18:45:41 UTC | Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <justin@tclau.com> | 07 May 2013, 11:20:19 UTC |
fcd544c | Justin Lau | 05 May 2013, 17:26:33 UTC | Added test scenario with unicode in properties name. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 17:26:33 UTC |
1e3bc0c | Justin Lau | 05 May 2013, 14:27:43 UTC | Fixed dot property issue with invlid identifier names. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 14:27:43 UTC |
8227e87 | Justin Lau | 05 May 2013, 14:08:13 UTC | Added scenario in test case where properties shouldn't be accessed with dotted syntax even with screw_ie8 option. Signed-off-by: Justin Lau <justin@tclau.com> | 05 May 2013, 14:08:13 UTC |
790b3bc | Kim Joar Bekkelund | 02 May 2013, 09:15:33 UTC | Fix typo in bin and readme | 02 May 2013, 09:15:33 UTC |
d6e6458 | Mihai Bazon | 01 May 2013, 14:04:01 UTC | Merge pull request #194 from ulikoehler/master Add README syntax highlighting | 01 May 2013, 14:04:01 UTC |
a54b670 | Uli Köhler | 01 May 2013, 13:56:20 UTC | Add README syntax highlighting | 01 May 2013, 13:56:20 UTC |
8e62661 | Mihai Bazon | 01 May 2013, 10:15:34 UTC | Take two. v2.3.0 | 01 May 2013, 10:15:34 UTC |
5c22a1b | Mihai Bazon | 01 May 2013, 10:14:07 UTC | v2.3 | 01 May 2013, 10:14:07 UTC |
9794ebf | Mihai Bazon | 29 April 2013, 12:03:52 UTC | Workaround for missing `prefix` in UnaryExpression generated by Esprima See #193 | 29 April 2013, 12:03:52 UTC |
68394ee | Mihai Bazon | 21 April 2013, 08:35:50 UTC | Make compress/mangle disabled by default, as before 5af144522a6fea302abdd0b63d48864de0664207 | 21 April 2013, 08:35:50 UTC |
753b4b6 | Mihai Bazon | 21 April 2013, 08:30:02 UTC | Merge pull request #191 from michaelficarra/use-es5-member-access-with-screw-ie use dotted member access when --screw-ie8 option given | 21 April 2013, 08:30:02 UTC |
a9c1b9f | Mihai Bazon | 21 April 2013, 08:28:45 UTC | Merge pull request #190 from michaelficarra/patch-1 unbalanced parentheses in readme | 21 April 2013, 08:28:45 UTC |
5af1445 | Michael Ficarra | 20 April 2013, 20:11:05 UTC | fixes #189: use dotted member access when --screw-ie8 option given | 20 April 2013, 20:11:05 UTC |
483e0ca | Michael Ficarra | 20 April 2013, 19:05:52 UTC | unbalanced parentheses in readme | 20 April 2013, 19:05:52 UTC |
4b81805 | Roman Bataev | 04 April 2013, 02:34:38 UTC | Fix typeof evaluation for regex and function | 04 April 2013, 02:34:38 UTC |
b956e5f | Roman Bataev | 04 April 2013, 02:34:19 UTC | Add tests for typeof evaluation | 04 April 2013, 02:34:19 UTC |
37d7cb8 | Vladimir Zhuravlev | 31 March 2013, 13:55:11 UTC | Quote objects with numeric keys | 31 March 2013, 16:52:28 UTC |