Skip to content
New issue

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

ES6 Destruct on Catch #105

Closed
jupl opened this issue Mar 21, 2015 · 1 comment
Closed

ES6 Destruct on Catch #105

jupl opened this issue Mar 21, 2015 · 1 comment

Comments

@jupl
Copy link

jupl commented Mar 21, 2015

Originally reported on eslint/eslint#2123.

Given the following snippet, with ESLint I get an error on the catch line with Unexpected token {. There are no errors/warnings reported on the other destructs.

function x({a}) {
  try {
    const {b} = a;
  }
  catch({stack}) {
  }
}
@nzakas
Copy link
Member

nzakas commented Mar 21, 2015

Working on this.

@nzakas nzakas closed this as completed in d8a6f69 Mar 21, 2015
nzakas added a commit that referenced this issue Mar 21, 2015
Fix: Destructured arg for catch (fixes #105)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants