Skip to content

Normative: Wrap and unwrap Private Names to JS#125

Merged
littledan merged 1 commit intomasterfrom
to-from-private-name
Jul 10, 2018
Merged

Normative: Wrap and unwrap Private Names to JS#125
littledan merged 1 commit intomasterfrom
to-from-private-name

Conversation

@littledan
Copy link
Copy Markdown
Member

Internally, the specification makes use of Private Name values. Within
JavaScript, these are always seen through wrapper objects. This patch
makes it explicit where those wrapper objects are created and how they
are accessed. In particular, each time a decorator sees a private name,
it is seeing a distinct PrivateName object. Using fresh objects is
analogous to what we do for decorator descriptors.

Internally, the specification makes use of Private Name values. Within
JavaScript, these are always seen through wrapper objects. This patch
makes it explicit where those wrapper objects are created and how they
are accessed. In particular, each time a decorator sees a private name,
it is seeing a distinct PrivateName object. Using fresh objects is
analogous to what we do for decorator descriptors.
@littledan littledan merged commit a1ee709 into master Jul 10, 2018
@littledan
Copy link
Copy Markdown
Member Author

Thanks for the review!

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

Successfully merging this pull request may close these issues.

2 participants