Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Bugfix: fix a missed ~empty~ check in isSubsetOf (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored Nov 25, 2023
1 parent f3d5206 commit f2635a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,11 @@ <h1>Set.prototype.isSubsetOf ( _other_ )</h1>
1. Repeat, while _index_ &lt; _thisSize_,
1. Let _e_ be _O_.[[SetData]][_index_].
1. Set _index_ to _index_ + 1.
1. Let _inOther_ be ToBoolean(? Call(_otherRec_.[[Has]], _otherRec_.[[Set]], « _e_ »)).
1. If _inOther_ is *false*, return *false*.
1. NOTE: The number of elements in _O_.[[SetData]] may have increased during execution of _otherRec_.[[Has]].
1. Set _thisSize_ to the number of elements of _O_.[[SetData]].
1. If _e_ is not ~empty~, then
1. Let _inOther_ be ToBoolean(? Call(_otherRec_.[[Has]], _otherRec_.[[Set]], « _e_ »)).
1. If _inOther_ is *false*, return *false*.
1. NOTE: The number of elements in _O_.[[SetData]] may have increased during execution of _otherRec_.[[Has]].
1. Set _thisSize_ to the number of elements of _O_.[[SetData]].
1. Return *true*.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit f2635a7

Please sign in to comment.