Skip to content

Commit

Permalink
Editorial: create and assign [[PrivateElements]] slot in MakeBasicObj…
Browse files Browse the repository at this point in the history
…ect (tc39#3365)
  • Loading branch information
michaelficarra authored and ljharb committed Jul 11, 2024
1 parent 7d0b199 commit efd583d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6055,7 +6055,9 @@ <h1>
</dl>

<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. 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]].
1. Assert: If the caller will not be overriding all of _obj_'s [[SetPrototypeOf]], [[IsExtensible]], and [[PreventExtensions]] essential internal methods, then _internalSlotsList_ contains [[Extensible]].
Expand Down

0 comments on commit efd583d

Please sign in to comment.