diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /js/src/tests/non262/TypedArray/shell.js | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/tests/non262/TypedArray/shell.js')
-rw-r--r-- | js/src/tests/non262/TypedArray/shell.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/tests/non262/TypedArray/shell.js b/js/src/tests/non262/TypedArray/shell.js index 2fb0ab8f1d..b31fa70f59 100644 --- a/js/src/tests/non262/TypedArray/shell.js +++ b/js/src/tests/non262/TypedArray/shell.js @@ -2,7 +2,7 @@ "use strict"; const { - Float32Array, Float64Array, Object, Reflect, SharedArrayBuffer, WeakMap, + Float16Array, Float32Array, Float64Array, Object, Reflect, SharedArrayBuffer, WeakMap, assertEq } = global; const { @@ -69,7 +69,7 @@ Uint32Array, Float32Array, Float64Array, - ]); + ].concat(Float16Array ?? [])); /** * All TypedArray constructors for shared memory. @@ -97,13 +97,13 @@ /** * Returns `true` if `constructor` is a TypedArray constructor for shared - * or unshared memory, with an underlying element type of either Float32 or - * Float64. + * or unshared memory, with an underlying element type of one of Float16, Float32 + * or Float64. */ function isFloatConstructor(constructor) { if (isSharedConstructor(constructor)) constructor = Reflect_apply(WeakMap_prototype_get, sharedConstructors, [constructor]); - return constructor == Float32Array || constructor == Float64Array; + return constructor == Float32Array || constructor == Float64Array || (Float16Array && constructor == Float16Array); } global.typedArrayConstructors = typedArrayConstructors; |