diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-11-28 19:48:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 03:48:42 +0800 |
commit | 8791f258e3996adb882fc62329f970270366b216 (patch) | |
tree | 57a156966639877ac193ed709522db3291aaa5b9 /test | |
parent | af1cca25bf3c29aa925bbe2a164786ebcf7dd476 (diff) | |
download | tracifyjs-8791f258e3996adb882fc62329f970270366b216.tar.gz tracifyjs-8791f258e3996adb882fc62329f970270366b216.zip |
fix corner case in `inline` (#4322)
fixes #4321
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/destructured.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/compress/destructured.js b/test/compress/destructured.js index afc9152b..d751e253 100644 --- a/test/compress/destructured.js +++ b/test/compress/destructured.js @@ -1710,3 +1710,34 @@ issue_4319: { expect_stdout: "undefined" node_version: ">=6" } + +issue_4321: { + options = { + inline: true, + keep_fargs: "strict", + } + input: { + try { + console.log(function({}) { + return function() { + while (!console); + }(); + }()); + } catch (e) { + console.log("PASS"); + } + } + expect: { + try { + console.log(function({}) { + return function() { + while (!console); + }(); + }()); + } catch (e) { + console.log("PASS"); + } + } + expect_stdout: "PASS" + node_version: ">=6" +} |