From 36bca6934de494a79a1c1af952653eaaf9c15ed8 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 28 Feb 2018 15:19:32 +0800 Subject: enhance `collapse_vars` (#2952) - `a = b, b` => `a = b` - `a.b = c, c()` => `(a.b = c)()` --- test/compress/sequences.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/compress/sequences.js') diff --git a/test/compress/sequences.js b/test/compress/sequences.js index 03075bf1..12acbcf7 100644 --- a/test/compress/sequences.js +++ b/test/compress/sequences.js @@ -668,8 +668,7 @@ side_effects_cascade_2: { } expect: { function f(a, b) { - b = a, - !a + (b += a) || (b += a), + !(b = a) + (b += a) || (b += a), b = a; } } -- cgit v1.2.3