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

Editorial: Document initial internal slot values at their point of creation #3537

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

@gibson042 gibson042 commented Feb 18, 2025

Object Internal Methods and Internal Slots defines the initial value of an internal slot to be undefined, but without a reference to that in MakeBasicObject, it can be difficult to track branding/externally-oriented slots such as Error [[ErrorData]], AllocateArrayBuffer [[ArrayBufferDetachKey]], and ECMA-402 [[Initialized$TypeName]] slots.

This PR adds a note to make that behavior more obvious.

@bakkot
Copy link
Contributor

bakkot commented Feb 18, 2025

We might want to stop doing this #3399 though I guess I'm fine with adding a note for now.

@gibson042
Copy link
Contributor Author

I'm very much in favor of fixing #3399, but this is an easy win in the interim.

Copy link
Member

@michaelficarra michaelficarra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is fine, we'll just have to remove it with #3399.

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.

3 participants