From e0c74e1a229895e36cebab346832436693c79c2c Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Wed, 6 Apr 2022 15:05:37 -0700 Subject: [PATCH] Normative: Remove detach check in TypedArray.prototype.sort comparator (#2723) --- spec.html | 1 - 1 file changed, 1 deletion(-) diff --git a/spec.html b/spec.html index 4fcfe59bbc..de7dca2304 100644 --- a/spec.html +++ b/spec.html @@ -39228,7 +39228,6 @@

%TypedArray%.prototype.sort ( _comparefn_ )

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_ »)). - 1. If IsDetachedBuffer(_buffer_) is *true*, throw a *TypeError* exception. 1. If _v_ is *NaN*, return *+0*𝔽. 1. Return _v_. 1. If _x_ and _y_ are both *NaN*, return *+0*𝔽.