diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 2c50cb37..8fe0ad62 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1776,7 +1776,9 @@ merge(Compressor.prototype, { can_replace = false; var after = stop_after; var if_hit = stop_if_hit; - for (var i = 0; !abort && i < fn.body.length; i++) { + if (fn instanceof AST_Arrow && fn.value) { + fn.value.transform(scanner); + } else for (var i = 0; !abort && i < fn.body.length; i++) { var stat = fn.body[i]; if (stat instanceof AST_Return) { if (stat.value) stat.value.transform(scanner); |