From 1b2a8de33f2dea3e4872b20d429ca9e4442b39ac Mon Sep 17 00:00:00 2001 From: alexlamsl Date: Sat, 30 Dec 2017 14:53:17 +0800 Subject: [PATCH] improve test for #2689 --- 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())}" }