blob: 1d652f7783f8bf8281e4c33e84bf454b22b32d35 (
plain)
1
2
3
4
5
6
7
8
|
const testArray = [1n];
for (const constructor of anyTypedArrayConstructors) {
assertThrowsInstanceOf(() => new constructor(testArray), TypeError);
assertThrowsInstanceOf(() => new constructor(testArray.values()), TypeError);
}
if (typeof reportCompare === "function")
reportCompare(true, true);
|