We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ cat destructuring-catch-scope.js let a = 1; // mistakenly dropped let def = "PASS2"; // mistakenly dropped try { throw [ "FAIL2", "PASS1" ]; } catch ({ [a]: b, 3: d = def }) { let a = 0, def = "FAIL3"; console.log(b, d); }
$ cat destructuring-catch-scope.js | node PASS1 PASS2
$ cat destructuring-catch-scope.js | rollup --silent try { throw [ "FAIL2", "PASS1" ]; } catch ({ [a]: b, 3: d = def }) { let a = 0, def = "FAIL3"; console.log(b, d); }
$ cat destructuring-catch-scope.js | rollup --silent | node [stdin]:3 } catch ({ [a]: b, 3: d = def }) { ^ ReferenceError: a is not defined
The text was updated successfully, but these errors were encountered:
Good catch 🙄 Fix at #4108. That one will also fix the other catch scoping issue.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Repro
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: