Skip to content

Commit

Permalink
Normative: Remove detach check in TypedArray.prototype.sort comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Apr 4, 2022
1 parent ee2d790 commit 3b50a33
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -37603,7 +37603,6 @@ <h1>%TypedArray%.prototype.sort ( _comparefn_ )</h1>
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*, &laquo; _x_, _y_ &raquo;)).
1. If IsDetachedBuffer(_buffer_) is *true*, throw a *TypeError* exception.
1. If _v_ is *NaN*, return *+0*<sub>𝔽</sub>.
1. Return _v_.
1. If _x_ and _y_ are both *NaN*, return *+0*<sub>𝔽</sub>.
Expand Down

0 comments on commit 3b50a33

Please sign in to comment.