Skip to content

Commit 4a52a2f

Browse files
Use SEQ-CST ordering to match ECMAScript
1 parent e2308a0 commit 4a52a2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9332,17 +9332,17 @@ a reference to the same object that the IDL value represents.
93329332
1. If |jsBufferSource| has a \[[TypedArrayName]] [=/internal slot=]:
93339333
1. Assert: |jsBufferSource| is a [=typed array type=] instance.
93349334
1. Let |taRecord| be [$MakeTypedArrayWithBufferWitnessRecord$](|jsBufferSource|,
9335-
Unordered).
9335+
Seq-Cst).
93369336
1. Return [$TypedArrayByteLength$](|taRecord|).
93379337
1. Otherwise:
93389338
1. Assert: |jsBufferSource| is a {{DataView}}.
93399339
1. Let |viewRecord| be [$MakeDataViewWithBufferWitnessRecord$](|jsBufferSource|,
9340-
Unordered).
9340+
Seq-Cst).
93419341
1. If [$IsViewOutOfBounds$](|viewRecord|) is true, return 0.
93429342
1. Return [$GetViewByteLength$](|viewRecord|).
93439343
1. Otherwise, if [$IsSharedArrayBuffer$](|jsBufferSource|) is true, then:
93449344
1. Assert: |jsBufferSource| is a {{SharedArrayBuffer}}.
9345-
1. Return [$ArrayBufferByteLength$](|jsBufferSource|, Unordered).
9345+
1. Return [$ArrayBufferByteLength$](|jsBufferSource|, Seq-Cst).
93469346
1. Otherwise:
93479347
1. Assert: |jsBufferSource| is an {{ArrayBuffer}}.
93489348
1. Return |jsBufferSource|.\[[ArrayBufferByteLength]].

0 commit comments

Comments
 (0)