Skip to content

TypeError destructing: odd behavior afterwards #1568

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

Closed
tcodes0 opened this issue Oct 24, 2018 · 2 comments
Closed

TypeError destructing: odd behavior afterwards #1568

tcodes0 opened this issue Oct 24, 2018 · 2 comments

Comments

@tcodes0
Copy link

tcodes0 commented Oct 24, 2018

  • Node.js Version: 10.12.0
  • OS: MacOS Sierra 10.12.6

I'm confused by this behavior in the repl. Why the syntax error? Didn't the assignment fail?
screen shot 2018-10-24 at 9 46 09 am

@vsemozhetbyt
Copy link

This seems confusing, but according to spec.
See nodejs/node#22476, nodejs/node#22707, nodejs/node#23052, etc.

@tcodes0
Copy link
Author

tcodes0 commented Oct 24, 2018

thougth so. Thanks @vsemozhetbyt

@tcodes0 tcodes0 closed this as completed Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants