UglifyJS/test/compress
Alex Lam S.L 0d7d4918eb augment evaluate to extract within objects (#1425)
- gated by `unsafe`
- replaces previous optimisation specific to String.length
- "123"[0] => 1
- [1, 2, 3][0] => 1
- [1, 2, 3].length => 3
- does not apply to objects with overridden prototype functions
2017-01-26 12:14:18 +01:00
..
angular-inject.js added newline at the end of the file 2014-07-08 11:16:35 +02:00
arrays.js augment evaluate to extract within objects (#1425) 2017-01-26 12:14:18 +01:00
ascii.js Enable --screw-ie8 by default. 2016-06-30 21:49:48 +02:00
asm.js implement optimization: (x = 2 * x) ---> (x *= 2) 2016-08-30 08:43:02 -04:00
assignment.js implement optimization: (x = 2 * x) ---> (x *= 2) 2016-08-30 08:43:02 -04:00
blocks.js minor 2012-08-27 11:00:26 +03:00
collapse_vars.js collapse_vars: Do not consider RegExp literals to be constants 2016-05-27 00:03:51 -04:00
comparing.js Fix test262 failures related to <, <=, in and instanceof 2016-06-15 23:11:08 +02:00
concat-strings.js Escape null characters as \0 unless followed by 0-7. 2016-06-12 14:32:32 +02:00
conditionals.js Fix conditional expressions of form (x ? -1 : -1) 2016-06-21 14:52:13 -04:00
dead-code.js Tighten up @const regex. 2016-01-20 11:35:45 -06:00
debugger.js wrote more of the compressor and added some tests 2012-08-22 15:21:58 +03:00
drop-console.js Drop all console statements properly 2015-01-31 13:24:44 +01:00
drop-unused.js Control keeping function arguments with a single option 2015-09-14 19:38:45 +02:00
evaluate.js augment evaluate to extract within objects (#1425) 2017-01-26 12:14:18 +01:00
functions.js Add preventive test involving non-ascii function identifiers 2017-01-19 17:13:33 +01:00
html_comments.js Fix other operator output related to <!-- or --> 2015-10-13 01:17:10 -04:00
if_return.js Optimize if_return for single if/return cases. 2016-05-24 17:54:08 +02:00
issue-12.js Allow operator names as getters/setters 2016-01-19 19:28:51 +01:00
issue-22.js fix for if (...) return; else return ...; 2012-10-24 09:33:32 +03:00
issue-44.js fix invalid AST produced by dropping unused variable 2012-11-12 13:23:57 +02:00
issue-59.js Add test for issue #59 2012-11-30 11:26:37 +02:00
issue-105.js Better fix for equality of typeof ... against "undefined" 2013-05-08 16:22:48 +03:00
issue-126.js Add a unit test for issue-126 2013-10-25 16:28:15 -04:00
issue-143.js Added test cases for #104. 2013-05-08 16:22:48 +03:00
issue-208.js add missing LHS cases which global_defs should avoid 2017-01-19 21:06:28 +01:00
issue-267.js Disallow reversal where lhs has higher or equal precedence 2013-10-29 21:37:36 +01:00
issue-269.js Fix faulty compression 2013-11-20 21:13:16 +02:00
issue-597.js Fix tests 2015-04-17 11:28:59 +03:00
issue-611.js Replace the correct node when replacing in void sequences 2015-01-12 17:09:34 +01:00
issue-637.js Fix invalid removal of left side in && and || compression 2015-02-11 21:08:41 +01:00
issue-747.js Fix mangling of property names which overwrite unmangleable properties 2015-08-05 21:18:39 +02:00
issue-751.js Don't attempt to negate non-boolean AST_Binary 2015-07-22 16:55:55 +03:00
issue-782.js preserve ThisBinding for side_effects 2016-02-17 19:34:01 +01:00
issue-892.js Never mangle arguments and keep them in their scope 2016-01-14 19:45:52 +01:00
issue-913.js Fix hoisting the var in ForIn 2016-01-05 13:56:52 +02:00
issue-973.js preserve ThisBinding for side_effects 2016-02-17 19:34:01 +01:00
issue-976.js Add base54.reset() to compress tests 2016-04-12 20:08:09 +02:00
issue-979.js Take operator || precendence into account for AST_If optimization. 2016-02-21 12:05:02 -05:00
issue-1034.js Add passes compress option. Fix duplicate compress warnings. 2016-04-19 20:05:33 +02:00
issue-1041.js Prevent endless recursion when evaluating self-referencing consts 2016-04-13 15:03:31 +02:00
issue-1052.js Add test cases for slightly more esoteric cases 2016-04-26 11:49:55 +02:00
issue-1105.js Don't replace undefined, NaN and Infinity within with scope 2016-06-21 10:53:29 +02:00
issue-1202.js Fix mangle with option keep_fnames=true for Safari. 2016-07-15 13:18:14 +02:00
issue-1275.js Account for side effects in string + expr optimization 2016-09-01 09:24:56 -04:00
issue-1321.js Add --mangle-props-debug and fix --mangle-props=unquoted collision 2016-11-29 20:25:39 +01:00
labels.js more optimizations for some break/continue cases 2012-10-18 15:14:57 +03:00
loops.js Keep const in own scope while compressing 2016-07-15 13:20:52 +02:00
negate-iife.js Fix negate_iife transform to return a correct tree for nested IIFEs 2016-08-17 11:55:59 +02:00
new.js Fix negate_iife transform to return a correct tree for nested IIFEs 2016-08-17 11:55:59 +02:00
numbers.js Fix: Uglified Number.prototype functions on big numbers 2016-03-14 12:41:06 +01:00
properties.js augment evaluate to extract within objects (#1425) 2017-01-26 12:14:18 +01:00
reduce_vars.js augment evaluate to extract within objects (#1425) 2017-01-26 12:14:18 +01:00
return_undefined.js return undefined optimization no longer uses return_void_0 option 2015-10-29 08:19:12 +01:00
screw-ie8.js Have minify() and tests use figure_out_scope() as uglifyjs CLI does 2017-01-19 17:14:33 +01:00
sequences.js Referencing a global is assumed to have side effects. 2014-09-28 11:18:25 +03:00
string-literal.js Move OctalEscapeSequence to read_escape_char 2016-06-30 21:42:15 +02:00
switch.js Drop last default: if it's the last branch and empty 2013-03-01 13:12:03 +02:00
typeof.js Fix (typeof side_effect()) in boolean context 2016-10-06 13:50:11 +02:00
unicode.js Add test 2015-01-20 00:31:44 +01:00
wrap_iife.js Remove console.log and add extra test case 2016-10-06 14:11:32 +02:00