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

Commit 4155e6e

Browse files
authored
Normative: throw on negative set sizes (#88)
1 parent 80823af commit 4155e6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ <h1>
287287
1. NOTE: If _rawSize_ is *undefined*, then _numSize_ will be *NaN*.
288288
1. If _numSize_ is *NaN*, throw a *TypeError* exception.
289289
1. Let _intSize_ be ! ToIntegerOrInfinity(_numSize_).
290+
1. If _intSize_ < 0, throw a *RangeError* exception.
290291
1. Let _has_ be ? Get(_obj_, *"has"*).
291292
1. If IsCallable(_has_) is *false*, throw a *TypeError* exception.
292293
1. Let _keys_ be ? Get(_obj_, *"keys"*).

0 commit comments

Comments
 (0)