Skip to content

Commit

Permalink
Fix min > max edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb authored Jan 5, 2025
1 parent f773fd8 commit 8017116
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ contributors: Oliver Medhurst, Richie Bendall
1. If _min_ is *NaN*, throw a *RangeError* exception.
1. If _max_ is not a Number, throw a *TypeError* exception.
1. If _max_ is *NaN*, throw a *RangeError* exception.
1. If _min_ is *+0*<sub>𝔽</sub> and _max_ is *-0*<sub>𝔽</sub>, throw a *RangeError* exception.
1. If _min_ > _max_, throw a *RangeError* exception.
1. If _value_ is *NaN*, return *NaN*.
1. If _value_ is *-0*<sub>𝔽</sub> and _min_ is *+0*<sub>𝔽</sub>, return *+0*<sub>𝔽</sub>.
Expand Down

0 comments on commit 8017116

Please sign in to comment.