Better fix for #343
authorMihai Bazon <mihai@bazon.net>
Wed, 6 Nov 2013 08:47:36 +0000 (10:47 +0200)
committerMihai Bazon <mihai@bazon.net>
Wed, 6 Nov 2013 08:48:48 +0000 (10:48 +0200)
commiteab99a1c3d229f7e73b91b5a28e5ebf53a24671b
tree655479057eaedbaee56ead75168ca98ecc7ff5f2
parent19e2fb134d1c6d0fdf74b0d008d772c0283afb6e
Better fix for #343

We can in fact lift sequences, but only if the operation is assignment and
the left-hand side has no side effects nor property access -- that should
guarantee that whatever we place before it cannot affect the sense of the
assignment.

Dropped contrived test case (too hard to support it now), added a more
meaningful one.
lib/compress.js
test/compress/sequences.js