From 4010380edcc73aeab92031994bca9c20040fe8c8 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 16 Feb 2024 15:37:58 -0800 Subject: [PATCH] Markup: coercing primtives to numerics is not user code in IsLessThan (#3281) --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 9ab2eff4df..0c044ba95d 100644 --- a/spec.html +++ b/spec.html @@ -5934,8 +5934,8 @@

1. If _nx_ is *undefined*, 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 Type(_ny_), then 1. If _nx_ is a Number, then 1. Return Number::lessThan(_nx_, _ny_).