From 2b2b45678a338eef0498b1c4976097089c2d806a Mon Sep 17 00:00:00 2001 From: h2oche Date: Mon, 12 Jul 2021 22:13:12 -0700 Subject: [PATCH] Editorial: Fix wrong assertion in IsLessThan (#2456) --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 298964b4cd..80a449af80 100644 --- a/spec.html +++ b/spec.html @@ -5253,8 +5253,8 @@

IsLessThan ( _x_, _y_, _LeftFirst_ )

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*.