Skip to content

Commit

Permalink
Editorial: Document initial internal slot values at their point of cr…
Browse files Browse the repository at this point in the history
…eation (#3537)
  • Loading branch information
gibson042 authored and ljharb committed Feb 27, 2025
1 parent d430ace commit d005528
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6151,6 +6151,7 @@ <h1>
<emu-alg>
1. Set _internalSlotsList_ to the list-concatenation of _internalSlotsList_ and « [[PrivateElements]] ».
1. Let _obj_ be a newly created object with an internal slot for each name in _internalSlotsList_.
1. NOTE: As described in <emu-xref href="#sec-object-internal-methods-and-internal-slots" title></emu-xref>, the initial value of each such internal slot is *undefined* unless specified otherwise.
1. Set _obj_.[[PrivateElements]] to a new empty List.
1. Set _obj_'s essential internal methods to the default ordinary object definitions specified in <emu-xref href="#sec-ordinary-object-internal-methods-and-internal-slots"></emu-xref>.
1. Assert: If the caller will not be overriding both _obj_'s [[GetPrototypeOf]] and [[SetPrototypeOf]] essential internal methods, then _internalSlotsList_ contains [[Prototype]].
Expand Down

0 comments on commit d005528

Please sign in to comment.