UglifyJS/test/compress
David Glasser bb3eb65015 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,,].
2013-02-20 12:00:55 -06:00
..
arrays.js Fix output for arrays whose last element is a hole: [1,,] 2013-02-20 12:00:55 -06:00
blocks.js minor 2012-08-27 11:00:26 +03:00
conditionals.js added option for side-effect-free statements, fix test 2012-10-03 13:08:03 +03:00
dead-code.js always keep declarations found in unreachable code 2012-09-07 15:18:32 +03:00
debugger.js wrote more of the compressor and added some tests 2012-08-22 15:21:58 +03:00
drop-unused.js drop unused function arguments 2012-10-13 15:04:44 +03:00
issue-12.js actually enable the option that drops unused names in the test of issue #12 2012-10-12 11:41:48 +03: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 Fix #105: property comparison to undefined is not always safe 2013-01-23 23:52:04 -05:00
labels.js more optimizations for some break/continue cases 2012-10-18 15:14:57 +03:00
loops.js optimization for if/break as first statement in a loop body 2012-11-08 11:43:14 +02:00
properties.js wrote more of the compressor and added some tests 2012-08-22 15:21:58 +03:00
sequences.js don't move expressions containing the binary in operator into the for initializer 2012-10-30 14:50:47 +02:00
switch.js better solution for the last test in constant switch folding 2012-11-14 12:21:43 +02:00