diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-12 03:30:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-12 03:30:25 +0800 |
commit | ebfd5c5c7480f35af986949f692b01ff7526b97d (patch) | |
tree | 43f2434afbd4b046d125f258b1b30644ca5e5efa /test/compress/collapse_vars.js | |
parent | f2ad54267945ed96f4e84ade21af262c6ffd1d23 (diff) | |
download | tracifyjs-ebfd5c5c7480f35af986949f692b01ff7526b97d.tar.gz tracifyjs-ebfd5c5c7480f35af986949f692b01ff7526b97d.zip |
fix `AST_VarDef.may_throw()` (#2580)
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r-- | test/compress/collapse_vars.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js index 2136b2f0..330667dd 100644 --- a/test/compress/collapse_vars.js +++ b/test/compress/collapse_vars.js @@ -3785,3 +3785,23 @@ issue_2571_2: { } expect_stdout: "undefined" } + +may_throw: { + options = { + collapse_vars: true, + } + input: { + function f() { + var a_2 = function() { + var a; + }(); + } + } + expect: { + function f() { + var a_2 = function() { + var a; + }(); + } + } +} |