ecma402 icon indicating copy to clipboard operation
ecma402 copied to clipboard

%SegmentsPrototype% and %SegmentIteratorPrototype% are missing from § 5.1

Open bathos opened this issue 3 years ago • 0 comments

The “registration” of additional well-known intrinsic objects doesn’t currently include %SegmentsPrototype% and %SegmentIteratorPrototype%.

In the absence of an entry, I’m pretty sure phrases like “The %SegmentsPrototype% Object” end up incoherent given the percent-name syntax is defined in terms of that table’s entries. I’m not sure if they’d technically end up “created” during realm initialization as a result (tho that seems kinda fuzzy) — but regardless they’d be absent from [[Intrinsics]]. In algorithmic text like “OrdinaryObjectCreate(%SegmentsPrototype%, internalSlotsList),” %SegmentsPrototype% expands to something like (current realm).[[Intrinsics]].[[%SegmentsPrototype%]], so it’d be referencing a value that doesn’t exist.

(@ljharb — possibly of interest given general %% cleanup efforts)

bathos avatar Feb 27 '22 00:02 bathos