Skip to content

Commit 56ed4a5

Browse files
Correct documentation around non-shared views to Atomics.notify() (mdn#39799)
* javascript: correct global_objects/atomics/notify * Update index.md --------- Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
1 parent da29976 commit 56ed4a5

File tree

1 file changed

+2
-3
lines changed
  • files/en-us/web/javascript/reference/global_objects/atomics/notify

1 file changed

+2
-3
lines changed

files/en-us/web/javascript/reference/global_objects/atomics/notify/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ Atomics.notify(typedArray, index, count)
3131

3232
### Return value
3333

34-
- Returns the number of woken up agents.
35-
- Returns `0`, if a non-shared {{jsxref("ArrayBuffer")}} object is used.
34+
Returns the number of woken up agents, or `0` if `typedArray` is a view on a non-shared {{jsxref("ArrayBuffer")}}.
3635

3736
### Exceptions
3837

3938
- {{jsxref("TypeError")}}
40-
- : Thrown if `typedArray` is not an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}} that views a {{jsxref("SharedArrayBuffer")}}.
39+
- : Thrown if `typedArray` is not an {{jsxref("Int32Array")}} or {{jsxref("BigInt64Array")}}.
4140
- {{jsxref("RangeError")}}
4241
- : Thrown if `index` is out of bounds in the `typedArray`.
4342

0 commit comments

Comments
 (0)