diff options
Diffstat (limited to 'test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js')
-rw-r--r-- | test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js index 2c87901fd..754abcd42 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js @@ -14,15 +14,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, TypedArray] ---*/ -var sample1 = new Int8Array(7); -var sample2 = new Int16Array(7); -var sample3 = new BigInt64Array(7); -var sample4 = new BigUint64Array(7); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : - TA === BigInt64Array ? sample4 : - TA === BigUint64Array ? sample3 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var typedArray = new TA(sample); assert.sameValue(typedArray.length, 7); |