From efe8cda6a01ee1d4592414b75738b97abc3aa900 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Thu, 21 Jul 2022 20:59:18 -0700 Subject: [PATCH] Editorial: remove unused capture in %TypedArray%.prototype.sort --- spec.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 850d6830cab..c9122f0a75a 100644 --- a/spec.html +++ b/spec.html @@ -39415,10 +39415,9 @@

%TypedArray%.prototype.sort ( _comparefn_ )

1. If _comparefn_ is not *undefined* and IsCallable(_comparefn_) is *false*, throw a *TypeError* exception. 1. Let _obj_ be the *this* value. 1. Perform ? ValidateTypedArray(_obj_). - 1. Let _buffer_ be _obj_.[[ViewedArrayBuffer]]. 1. Let _len_ be _obj_.[[ArrayLength]]. 1. NOTE: The following closure performs a numeric comparison rather than the string comparison used in . - 1. Let _SortCompare_ be a new Abstract Closure with parameters (_x_, _y_) that captures _comparefn_ and _buffer_ and performs the following steps when called: + 1. Let _SortCompare_ be a new Abstract Closure with parameters (_x_, _y_) that captures _comparefn_ and performs the following steps when called: 1. Assert: Both Type(_x_) and Type(_y_) are Number or both are BigInt. 1. If _comparefn_ is not *undefined*, then 1. Let _v_ be ? ToNumber(? Call(_comparefn_, *undefined*, « _x_, _y_ »)).