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

Source maps seems not to work at destructuring statements #24419

Closed
adrienboulle opened this issue May 25, 2018 · 3 comments
Closed

Source maps seems not to work at destructuring statements #24419

adrienboulle opened this issue May 25, 2018 · 3 comments
Assignees
Labels
Needs Investigation This issue needs a team member to investigate its status.

Comments

@adrienboulle
Copy link

adrienboulle commented May 25, 2018

TypeScript Version: 3.0.0-dev.20180522

Search Terms:
source maps destructuring

Code

const { uid: modalId } = this.open({
  context: {
    onSubmit: () => {
      console.log('in onSubmit');
    },
  },
});

Expected behavior:
sources map should make it possible to add breakpoints at console.log('in onSubmit');
(works in vanilla js)

Actual behavior:
Breakpoints are not possible
image

@mhegazy mhegazy added the Needs Investigation This issue needs a team member to investigate its status. label May 25, 2018
@ghost
Copy link

ghost commented May 29, 2018

#23346 would have changed this, wonder if that would affect it. @rbuckton

@adrienboulle
Copy link
Author

@Andy-MS still here in 3.1.0-dev.20180830

@adrienboulle
Copy link
Author

@Andy-MS still here in 3.3.0-dev.20190105
I don't know what is your status about this issue but as a full time typescript user, this issue mean that we just can't use destructuring in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Investigation This issue needs a team member to investigate its status.
Projects
None yet
Development

No branches or pull requests

3 participants