LibJS: Re-arrange and rename a few Intl properties

This is an editorial change in the ECMA-402 spec. See:
a46e37d
e102741
67a8417
ecb086c
This commit is contained in:
Timothy Flynn 2025-03-03 08:47:10 -05:00 committed by Tim Flynn
commit aa61307392
Notes: github-actions[bot] 2025-03-04 12:37:30 +00:00
23 changed files with 481 additions and 481 deletions

View file

@ -12,11 +12,11 @@ namespace JS::Intl {
GC_DEFINE_ALLOCATOR(SegmentIterator);
// 19.6.1 CreateSegmentIterator ( segmenter, string ), https://tc39.es/ecma402/#sec-createsegmentsobject
// 19.6.1 CreateSegmentIterator ( segmenter, string ), https://tc39.es/ecma402/#sec-createsegmentiterator
GC::Ref<SegmentIterator> SegmentIterator::create(Realm& realm, Unicode::Segmenter const& segmenter, Utf16View const& string, Segments const& segments)
{
// 1. Let internalSlotsList be « [[IteratingSegmenter]], [[IteratedString]], [[IteratedStringNextSegmentCodeUnitIndex]] ».
// 2. Let iterator be OrdinaryObjectCreate(%SegmentIteratorPrototype%, internalSlotsList).
// 2. Let iterator be OrdinaryObjectCreate(%IntlSegmentIteratorPrototype%, internalSlotsList).
// 3. Set iterator.[[IteratingSegmenter]] to segmenter.
// 4. Set iterator.[[IteratedString]] to string.
// 5. Set iterator.[[IteratedStringNextSegmentCodeUnitIndex]] to 0.