UglifyJS/test/compress
David Glasser b1febde3e9 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-07-18 15:39:22 +03:00
..
arrays.js Fix output for arrays whose last element is a hole: [1,,] 2013-07-18 15:39:22 +03: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 Better fix for equality of typeof ... against "undefined" 2013-05-08 16:22:48 +03:00
issue-143.js Added test cases for #104. 2013-05-08 16:22:48 +03: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 Fix a["1_1"] 2013-05-14 10:42:34 +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 Drop last default: if it's the last branch and empty 2013-03-01 13:12:03 +02:00
typeof.js Add tests for typeof evaluation 2013-04-03 22:34:19 -04:00