aboutsummaryrefslogtreecommitdiff
path: root/test/compress/transform.js
AgeCommit message (Expand)Author
2018-03-16improve truthy compression (#3009)Alex Lam S.L
2018-02-28enhance `conditionals` (#2966)...- `x ? (y, w) : (z, w)` => `x ? y : z, w`Alex Lam S.L
2017-12-01convert to number under boolean context (#2545)Alex Lam S.L
2017-12-01improve compression of `if` conditions (#2544)Alex Lam S.L
2017-03-24fix expect_stdout (#1642)...`compress()` may modify input ASTs add tests for #1627 & #1640Alex Lam S.L
2017-03-19make `expect_stdout` work on Node.js 0.12 (#1623)...That particular version of Node.js has messed up error messages, so provide a version-specific workaround. Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input. Apply `expect_stdout` to more applicable tests.Alex 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