From 5e6307974fa2b1e7972ab8c58b636eaed47a54fb Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 10 Feb 2021 00:45:36 +0000 Subject: fix corner case in `collapse_vars` (#4634) fixes #4633 --- lib/compress.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/compress.js') diff --git a/lib/compress.js b/lib/compress.js index c822a8e7..3fcfe2d2 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -2009,7 +2009,7 @@ merge(Compressor.prototype, { }; var tw = new TreeWalker(function(node) { if (!arg) return true; - if (has_await(node)) { + if (has_await(node) || node instanceof AST_Yield) { arg = null; return true; } -- cgit v1.2.3