diff options
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index b35fc6a5..a0e018e3 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -9836,7 +9836,8 @@ merge(Compressor.prototype, { } } while (scope = scope.parent_scope); } - } else if (fixed.name && fixed.name.name == "await" && is_async(fixed)) { + } else if (fixed.name && (fixed.name.name == "await" && is_async(fixed) + || fixed.name.name == "yield" && is_generator(fixed))) { single_use = false; } if (single_use) fixed.parent_scope = self.scope; |