From 571ce3529e1202ba826ed2612ad7be6c9e7678a2 Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Thu, 7 Dec 2017 23:34:08 +0800 Subject: [PATCH] add test --- test/compress/conditionals.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js index c72768af..ebd05e9d 100644 --- a/test/compress/conditionals.js +++ b/test/compress/conditionals.js @@ -615,6 +615,8 @@ cond_9: { } input: { function f(x, y) { + x ? (y || x)() : (y || x)(); + x ? y(a, b) : y(d, b, c); x ? y(a, b, c) : y(a, b, c); x ? y(a, b, c) : y(a, b, f); x ? y(a, b, c) : y(a, e, c); @@ -627,6 +629,8 @@ cond_9: { } expect: { function f(x, y) { + x, (y || x)(); + x ? y(a, b) : y(d, b, c); x, y(a, b, c); y(a, b, x ? c : f); y(a, x ? b : e, c);