mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
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:
parent
8b0f6cb876
commit
aa61307392
Notes:
github-actions[bot]
2025-03-04 12:37:30 +00:00
Author: https://github.com/trflynn89
Commit: aa61307392
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3785
23 changed files with 481 additions and 481 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue