From ace272f0c505af074ddb587445ed3410329c6693 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 30 Dec 2017 15:49:49 +0800 Subject: [PATCH] improve test for #2689 (#2694) --- test/compress/yield.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/compress/yield.js b/test/compress/yield.js index cb11147c..0434b684 100644 --- a/test/compress/yield.js +++ b/test/compress/yield.js @@ -209,9 +209,5 @@ issue_2689: { return new t(); } } - expect: { - function* y() { - return new (yield x()); - } - } + expect_exact: "function*y(){return new(yield x())}" }