Skip to content

Commit

Permalink
Normative: Link from Segments instances to their creating Segmenter
Browse files Browse the repository at this point in the history
Fixes tc39#96
  • Loading branch information
gibson042 committed May 29, 2020
1 parent 3103131 commit 77af865
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ <h1>CreateSegmentsObject ( _segmenter_, _string_ )</h1>
1. Let _segments_ be ! ObjectCreate(%SegmentsPrototype%, _internalSlotsList_).
1. Set _segments_.[[SegmentsSegmenter]] to _segmenter_.
1. Set _segments_.[[SegmentsString]] to _string_.
1. Perform ! OrdinaryDefineOwnProperty(_segments_, *"segmenter"*, PropertyDescriptor { [[Value]]: _segmenter_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Perform ! OrdinaryDefineOwnProperty(_segments_, *"string"*, PropertyDescriptor { [[Value]]: _string_, [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }).
1. Return _segments_.
</emu-alg>
Expand Down Expand Up @@ -314,6 +315,11 @@ <h1>Properties of Segments Instances</h1>

<p>Segments instances also have the following properties:</p>

<emu-clause id="sec-segments.segmenter">
<h1>segmenter</h1>
<p>The *"segmenter"* property of a Segments instance references the Intl.Segmenter instance that created it. This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.</p>
</emu-clause>

<emu-clause id="sec-segments.string">
<h1>string</h1>
<p>The *"string"* property of a Segments instance contains the string being segmented. This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *false* }.</p>
Expand Down

0 comments on commit 77af865

Please sign in to comment.