diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-20 03:22:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 11:22:45 +0800 |
commit | caea6aac81555040071c21e9e35888f78aeb5a82 (patch) | |
tree | 5dbc98bc4b77a73349472f109cef2bce7fa5b983 /test/input/reduce/destructured_catch.js | |
parent | f5224ca1f5075d6912616675f1aa7fa8cc7741f1 (diff) | |
download | tracifyjs-caea6aac81555040071c21e9e35888f78aeb5a82.tar.gz tracifyjs-caea6aac81555040071c21e9e35888f78aeb5a82.zip |
handle destructuring `catch` in `--reduce-test` (#4427)
Diffstat (limited to 'test/input/reduce/destructured_catch.js')
-rw-r--r-- | test/input/reduce/destructured_catch.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/input/reduce/destructured_catch.js b/test/input/reduce/destructured_catch.js new file mode 100644 index 00000000..3b248455 --- /dev/null +++ b/test/input/reduce/destructured_catch.js @@ -0,0 +1,7 @@ +try { + "foo" in 42; +} catch ({ + message, +}) { + console.log(message); +} |