aboutsummaryrefslogtreecommitdiff
path: root/test/input
AgeCommit message (Expand)Author
2017-03-24fix expect_stdout (#1642)...`compress()` may modify input ASTs add tests for #1627 & #1640Alex Lam S.L
2017-03-23fix a bug in simple_glob (#1632)...- "?" should not match "/" - other minor clean-upsAlex Lam S.L
2017-03-10Correctly raise a parse exception with a missing loop body (#1585)Michael Mior
2017-02-27improve error messages (#1506)...- better inheritance of `Error` sub-classes - mark parse error against source in CLI closes #235 closes #348 closes #524 closes #1356 closes #1405Alex Lam S.L
2017-02-25allow --in-source-map inline (#1490)...- limited to one input file (or `stdin`) - only works with built-in parser fixes #520Alex Lam S.L
2017-02-21improve `--beautify bracketize`...reduce whitespaces from if-else statements fixes #1482 closes #1483 alexlamsl
2017-02-21enhance `global_defs`...- support arrays, objects & AST_Node - support `"a.b":1` on both cli & API - emit warning if variable is modified - override top-level variables fixes #1416 closes #1198 closes #1469 alexlamsl
2017-01-26fix mangling collision with keep_fnames (#1431)...* fix mangling collision with keep_fnames fixes #1423 * pass mangle options to figure_out_scope() bring command-line in line with minify() Alex Lam S.L
2016-10-23Add an option for writing inline source mappengzhenqing
2016-09-06Make all comment options in cli available in js api...Also removing more code within "loop" while at it. Anthony Van de Gejuchte
2016-08-14Add input file glob support to minify()kzc
2016-08-14Moved test input files to test/input.Lucas Wiener
>general clean-ups (#3175)Alex Lam S.L 2018-04-27improve general performance (#3104)Alex Lam S.L 2018-04-03improve performance through `makePredicate()` (#3048)Alex Lam S.L 2018-01-17fix `AST_Scope.clone()` (#2803)...fixes #2799Alex Lam S.L 2017-12-22make comments output more robust (#2633)...- improve handling of comments right after `return` - retain comments after `OutputStream` - preserve trailing comments - fix handling of new line before comments - handle comments around parentheses fixes #88 fixes #112 fixes #218 fixes #372 fixes #2629Alex Lam S.L 2017-12-11remove unused code (#2579)...fixes #2577Alex Lam S.L 2017-06-03clean up `lib/parse.js` (#2047)...- remove unused definitions - replace `array_to_hash()`Alex Lam S.L 2017-04-12convert `AST_Seq` from binary tree to array (#1460)...- rename `AST_Seq` to `AST_Sequence` - raise default sequences_limit from 200 to 800Alex Lam S.L 2017-03-15fix `AST_Node.optimize()` (#1602)...Liberal use of `Compressor.transform()` and `AST_Node.optimize()` presents an issue for look-up operations like `TreeWalker.in_boolean_context()` and `TreeWalker.parent()`. This is an incremental fix such that `AST_Node.optimize()` would now contain the correct stack information when called correctly.Alex Lam S.L 2017-03-01fix crash on missing `props` to `string_template()` (#1523)...Patched up `make_node()` without `orig`. There may be other cases where `start` could be missing, so make it print "undefined" instead of crashing. fixes #1518Alex Lam S.L 2017-02-27improve error messages (#1506)...- better inheritance of `Error` sub-classes - mark parse error against source in CLI closes #235 closes #348 closes #524 closes #1356 closes #1405Alex Lam S.L 2017-02-21clean up `negate_iife`...- remove extra tree scanning phase for `negate_iife` - `negate_iife` now only deals with the narrowest form, i.e. IIFE sitting directly under `AST_SimpleStatement` - `booleans`, `conditionals` etc. will now take care the rest via more accurate accounting - `a(); void b();` => `a(); b();` fixes #1288 closes #1451 alexlamsl 2016-11-29Do not overwrite options.comments + cleanupAnthony Van de Gejuchte 2016-06-30Various LineTerminator changes...* Escaped newlines should also produce SyntaxError * Fix multiline comment parsing and add tests * Adapt makePredicate to handle \u2028 and \u2029 * Move up nlb check in regex so it's checked before any escape handling * Change error messages to conform ecma standard * Find_eol not recornizing \u2028 and \u2029 as line terminator * Remove \u180e as it is removed in unicode 6.3.0 from the category zs Anthony Van de Gejuchte 2016-04-07Simplify member(name, array) implementation.kzc 2016-04-07Avoid using inherited hasOwnProperty...Fix #1031 Mihai Bazon 2015-03-14Add property name mangler...We only touch properties that are present in an object literal, or which are assigned to. Example: x = { foo: 1 }; x.bar = 2; x["baz"] = 3; x[cond ? "qwe" : "asd"] = 4; console.log(x.stuff); The names "foo", "bar", "baz", "qwe" and "asd" will be mangled, and the resulting mangled names will be used for the same properties throughout the code. The "stuff" will not be, since it's just referenced but never assigned to. This *will* break most of the code out there, but could work on carefully written code: do not use eval, do not define methods or properties by walking an array of names, etc. Also, a comprehensive list of exclusions needs to be passed, to avoid mangling properties that are standard in JavaScript, DOM, used in external libraries etc. Mihai Bazon 2013-12-10semicolonsMihai Bazon 2013-12-10Merge pull request #245 from ForbesLindesay/patch-1...Make `DefaultsError` a real `Error` objectMihai Bazon 2013-11-28Add --noerr to turn off argument name checking...for now only used for keys passed to `-c` or `-b`. Mihai Bazon 2013-07-22Make `DefaultsError` a real `Error` objectForbes Lindesay