Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Destructuring? #304

Closed
NickHeiner opened this issue Mar 24, 2020 · 2 comments
Closed

Destructuring? #304

NickHeiner opened this issue Mar 24, 2020 · 2 comments

Comments

@NickHeiner
Copy link

Is it possible to destructure a private field off this? Something like:

class A { 
  #p; 
  f() { 
    const {#p} = this; 
  } 
}
@ljharb
Copy link
Member

ljharb commented Mar 24, 2020

No, see #4.

@littledan
Copy link
Member

Thanks for answering, @ljharb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants