Skip to content

Commit

Permalink
Editorial: Fix wrong assertion in IsLessThan (#2456)
Browse files Browse the repository at this point in the history
  • Loading branch information
h2oche authored and ljharb committed Jul 13, 2021
1 parent 9ff2ef4 commit 2b2b456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5253,8 +5253,8 @@ <h1>IsLessThan ( _x_, _y_, _LeftFirst_ )</h1>
1. If _nx_ is *NaN*, return *undefined*.
1. Return BigInt::lessThan(_nx_, _py_).
1. NOTE: Because _px_ and _py_ are primitive values, evaluation order is not important.
1. Let _nx_ be ! ToNumeric(_px_).
1. Let _ny_ be ! ToNumeric(_py_).
1. Let _nx_ be ? ToNumeric(_px_).
1. Let _ny_ be ? ToNumeric(_py_).
1. If Type(_nx_) is the same as Type(_ny_), return Type(_nx_)::lessThan(_nx_, _ny_).
1. Assert: Type(_nx_) is BigInt and Type(_ny_) is Number, or Type(_nx_) is Number and Type(_ny_) is BigInt.
1. If _nx_ or _ny_ is *NaN*, return *undefined*.
Expand Down

0 comments on commit 2b2b456

Please sign in to comment.