Skip to content

Commit 8017116

Browse files
authored
Fix min > max edge case
1 parent f773fd8 commit 8017116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec.emu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ contributors: Oliver Medhurst, Richie Bendall
2323
1. If _min_ is *NaN*, throw a *RangeError* exception.
2424
1. If _max_ is not a Number, throw a *TypeError* exception.
2525
1. If _max_ is *NaN*, throw a *RangeError* exception.
26+
1. If _min_ is *+0*<sub>𝔽</sub> and _max_ is *-0*<sub>𝔽</sub>, throw a *RangeError* exception.
2627
1. If _min_ > _max_, throw a *RangeError* exception.
2728
1. If _value_ is *NaN*, return *NaN*.
2829
1. If _value_ is *-0*<sub>𝔽</sub> and _min_ is *+0*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.

0 commit comments

Comments
 (0)