UglifyJS/test/compress
Alex Lam S.L d787d70127 avoid substitution of global variables (#1557)
- unless `toplevel` is enabled
- global `const` works as before
2017-03-07 03:11:03 +08:00
..
angular-inject.js added newline at the end of the file 2014-07-08 11:16:35 +02:00
arrays.js improve string concatenation 2017-02-21 13:29:57 +08: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 replace a constant in loop condition or init (#1562) 2017-03-07 01:42:33 +08:00
comparing.js Fix test262 failures related to <, <=, in and instanceof 2016-06-15 23:11:08 +02:00
concat-strings.js minor improvement to string optimisation (#1514) 2017-03-02 11:31:39 +08:00
conditionals.js warn & drop #__PURE__ iff IIFE is dropped (#1511) 2017-02-28 02:25:44 +08:00
const.js enable collapse_vars & reduce_vars by default 2017-02-24 01:46:57 +08:00
dead-code.js avoid substitution of global variables (#1557) 2017-03-07 03:11:03 +08:00
debugger.js wrote more of the compressor and added some tests 2012-08-22 15:21:58 +03:00
drop-console.js Add .gitattributes to checkout lf eol style 2017-02-21 13:29:58 +08:00
drop-unused.js process code with implicit return statement (#1522) 2017-03-03 18:13:07 +08:00
evaluate.js process code with implicit return statement (#1522) 2017-03-03 18:13:07 +08:00
functions.js fix a corner case in #1530 (#1552) 2017-03-05 12:12:59 +08:00
global_defs.js enhance global_defs 2017-02-21 13:29:58 +08:00
hoist_vars.js fix duplicated test names 2017-02-21 13:29:58 +08:00
html_comments.js Fix other operator output related to <!-- or --> 2015-10-13 01:17:10 -04:00
if_return.js Improve optimizing function() { if(c){return foo} bar();} 2017-02-18 18:56:18 +08: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-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 enhance global_defs 2017-02-21 13:29:58 +08: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-368.js fixup for #1553 (#1555) 2017-03-05 17:15:37 +08: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-640.js process code with implicit return statement (#1522) 2017-03-03 18:13:07 +08: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 Improve optimizing function() { if(c){return foo} bar();} 2017-02-18 18:56:18 +08:00
issue-1034.js Add passes compress option. Fix duplicate compress warnings. 2016-04-19 20:05:33 +02:00
issue-1041.js enable collapse_vars & reduce_vars by default 2017-02-24 01:46:57 +08: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-1261.js warn & drop #__PURE__ iff IIFE is dropped (#1511) 2017-02-28 02:25:44 +08:00
issue-1275.js warn & drop #__PURE__ iff IIFE is dropped (#1511) 2017-02-28 02:25:44 +08:00
issue-1321.js Add --mangle-props-debug and fix --mangle-props=unquoted collision 2016-11-29 20:25:39 +01:00
issue-1431.js fix corner case in keep_fnames 2017-02-18 19:00:54 +08:00
issue-1443.js improve unsafe on undefined (#1548) 2017-03-05 13:09:27 +08:00
issue-1446.js enable typeof "undefined" for general use 2017-02-18 19:01:42 +08:00
issue-1447.js fix stray else in compress with conditionals=false 2017-02-21 13:29:57 +08:00
labels.js more optimizations for some break/continue cases 2012-10-18 15:14:57 +03:00
loops.js suppress semicolons after do/while (#1556) 2017-03-06 17:31:35 +08:00
max_line_len.js clean up max_line_len 2017-02-21 13:29:58 +08:00
negate-iife.js process code with implicit return statement (#1522) 2017-03-03 18:13:07 +08: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 compress numerical expressions (#1513) 2017-03-03 18:04:32 +08:00
properties.js introduce unsafe_proto 2017-02-21 13:29:58 +08:00
pure_funcs.js fix pure_funcs & improve side_effects 2017-02-21 13:31:59 +08:00
reduce_vars.js avoid substitution of global variables (#1557) 2017-03-07 03:11:03 +08: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 handle variable declaration within catch blocks (#1546) 2017-03-05 13:13:44 +08:00
sequences.js improve unsafe on undefined (#1548) 2017-03-05 13:09:27 +08: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 warn & drop #__PURE__ iff IIFE is dropped (#1511) 2017-02-28 02:25:44 +08: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