Skip to content

Commit

Permalink
Normative: throw on negative set sizes (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jul 18, 2023
1 parent 80823af commit 4155e6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ <h1>
1. NOTE: If _rawSize_ is *undefined*, then _numSize_ will be *NaN*.
1. If _numSize_ is *NaN*, throw a *TypeError* exception.
1. Let _intSize_ be ! ToIntegerOrInfinity(_numSize_).
1. If _intSize_ < 0, throw a *RangeError* exception.
1. Let _has_ be ? Get(_obj_, *"has"*).
1. If IsCallable(_has_) is *false*, throw a *TypeError* exception.
1. Let _keys_ be ? Get(_obj_, *"keys"*).
Expand Down

0 comments on commit 4155e6e

Please sign in to comment.