Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit be832c2

Browse files
committed
Remove redundant check in byteLength
1 parent 8f9208b commit be832c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ <h1>get %TypedArray%.prototype.byteLength</h1>
671671
1. Perform ? RequireInternalSlot(_O_, [[TypedArrayName]]).
672672
1. Assert: _O_ has a [[ViewedArrayBuffer]] internal slot.
673673
1. Let _buffer_ be _O_.[[ViewedArrayBuffer]].
674-
1. If IsDetachedBuffer(_buffer_) is *true*, return *+0*<sub>𝔽</sub>.
674+
1. <del>If IsDetachedBuffer(_buffer_) is *true*, return *+0*<sub>𝔽</sub></del>.
675675
1. <ins>Let _getBufferByteLength_ be MakeIdempotentArrayBufferByteLengthGetter(~SeqCst~).</ins>
676676
1. Let _size_ be <del>_O_.[[ByteLength]]</del><ins>IntegerIndexedObjectByteLength(_O_, _getBufferByteLength_)</ins>.
677677
1. Return 𝔽(_size_).

0 commit comments

Comments
 (0)