diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-01-30 09:04:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 09:04:44 +0800 |
commit | 79c60032a55b518e07acb45237e527b4fe61c8e6 (patch) | |
tree | 75ee56238ebb10f04ebc2c512a903252c11f4977 /lib | |
parent | a3754068dde7a51ab41b59a6d8a17a3a8c022564 (diff) | |
download | tracifyjs-79c60032a55b518e07acb45237e527b4fe61c8e6.tar.gz tracifyjs-79c60032a55b518e07acb45237e527b4fe61c8e6.zip |
fix corner case in `collapse_vars` (#3701)
fixes #3700
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index e6a064dd..5d14963f 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1395,7 +1395,7 @@ merge(Compressor.prototype, { var rhs_fn = scan_rhs; for (var i = 0; !abort && i < fn.body.length; i++) { var stat = fn.body[i]; - if (stat instanceof AST_Exit) { + if (stat instanceof AST_Return) { if (stat.value) stat.value.transform(scanner); break; } |