WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 4d2116b

Browse files
aapoalasljharb
authored andcommitted
Normative: DoWait byteIndexInBuffer is miscalculated (#3724)
1 parent 5ea7721 commit 4d2116b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spec.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46588,16 +46588,14 @@ <h1>
4658846588
1. Let _taRecord_ be ? ValidateIntegerTypedArray(_typedArray_, *true*).
4658946589
1. Let _buffer_ be _taRecord_.[[Object]].[[ViewedArrayBuffer]].
4659046590
1. If IsSharedArrayBuffer(_buffer_) is *false*, throw a *TypeError* exception.
46591-
1. Let _i_ be ? ValidateAtomicAccess(_taRecord_, _index_).
46591+
1. Let _byteIndexInBuffer_ be ? ValidateAtomicAccess(_taRecord_, _index_).
4659246592
1. Let _arrayTypeName_ be _typedArray_.[[TypedArrayName]].
4659346593
1. If _arrayTypeName_ is *"BigInt64Array"*, let _v_ be ? ToBigInt64(_value_).
4659446594
1. Else, let _v_ be ? ToInt32(_value_).
4659546595
1. Let _q_ be ? ToNumber(_timeout_).
4659646596
1. If _q_ is either *NaN* or *+∞*<sub>𝔽</sub>, let _t_ be +∞; else if _q_ is *-∞*<sub>𝔽</sub>, let _t_ be 0; else let _t_ be max(ℝ(_q_), 0).
4659746597
1. If _mode_ is ~sync~ and AgentCanSuspend() is *false*, throw a *TypeError* exception.
4659846598
1. Let _block_ be _buffer_.[[ArrayBufferData]].
46599-
1. Let _offset_ be _typedArray_.[[ByteOffset]].
46600-
1. Let _byteIndexInBuffer_ be (_i_ × 4) + _offset_.
4660146599
1. Let _WL_ be GetWaiterList(_block_, _byteIndexInBuffer_).
4660246600
1. If _mode_ is ~sync~, then
4660346601
1. Let _promiseCapability_ be ~blocking~.

0 commit comments

Comments
 (0)