Skip to content

Commit bb1ff0b

Browse files
gibson042ljharb
authored andcommitted
Editorial: Make better use of the "Set" specification type (tc39#3396)
1 parent 51aabeb commit bb1ff0b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

spec.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43681,7 +43681,7 @@ <h1>%MapIteratorPrototype% [ %Symbol.toStringTag% ]</h1>
4368143681

4368243682
<emu-clause id="sec-set-objects">
4368343683
<h1>Set Objects</h1>
43684-
<p>Set objects are collections of ECMAScript language values. A distinct value may only occur once as an element of a Set's collection. Distinct values are discriminated using the semantics of the SameValueZero comparison algorithm.</p>
43684+
<p><dfn variants="Set object">Set objects</dfn> are collections of ECMAScript language values. A distinct value may only occur once as an element of a Set's collection. Distinct values are discriminated using the semantics of the SameValueZero comparison algorithm.</p>
4368543685
<p>Set objects must be implemented using either hash tables or other mechanisms that, on average, provide access times that are sublinear on the number of elements in the collection. The data structure used in this specification is only intended to describe the required observable semantics of Set objects. It is not intended to be a viable implementation model.</p>
4368643686

4368743687
<emu-clause id="sec-abstract-operations-for-set-objects">
@@ -51485,10 +51485,7 @@ <h1>
5148551485
<dl class="header">
5148651486
</dl>
5148751487
<emu-alg>
51488-
1. Let _events_ be an empty Set.
51489-
1. For each event _E_ of EventSet(_execution_), do
51490-
1. If _E_ is not in SharedDataBlockEventSet(_execution_), add _E_ to _events_.
51491-
1. Return _events_.
51488+
1. Return the subtraction of SharedDataBlockEventSet(_execution_) from EventSet(_execution_).
5149251489
</emu-alg>
5149351490
</emu-clause>
5149451491

0 commit comments

Comments
 (0)