Skip to content

Commit 5495194

Browse files
committed
Fix loading of GSAB length
1 parent 6a3c859 commit 5495194

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42598,7 +42598,9 @@ <h1>
4259842598
<emu-alg>
4259942599
1. If IsSharedArrayBuffer(_arrayBuffer_) is *true* and _arrayBuffer_ has an [[ArrayBufferByteLengthData]] internal slot, then
4260042600
1. Let _bufferByteLengthBlock_ be _arrayBuffer_.[[ArrayBufferByteLengthData]].
42601-
1. Return ℝ(GetValueFromBuffer(_bufferByteLengthBlock_, 0, ~BigUint64~, *true*, _order_)).
42601+
1. Let _rawLength_ be GetRawBytesFromSharedBlock(_bufferByteLengthBlock_, 0, ~BigUint64~, *true*, _order_).
42602+
1. Let _isLittleEndian_ be the value of the [[LittleEndian]] field of the surrounding agent's Agent Record.
42603+
1. Return ℝ(RawBytesToNumeric(~BigUint64~, _rawLength_, _isLittleEndian_)).
4260242604
1. Assert: IsDetachedBuffer(_arrayBuffer_) is *false*.
4260342605
1. Return _arrayBuffer_.[[ArrayBufferByteLength]].
4260442606
</emu-alg>

0 commit comments

Comments
 (0)