aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compress.js')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
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;
}