throwTypeError(globalObject, scope, "Typed array argument must be an Int32Array or BigInt64Array."_s);
return { };
}
} else {
switch (typedArray->type()) {
case Int8ArrayType:
case Int16ArrayType:
case Int32ArrayType:
case Uint8ArrayType:
case Uint16ArrayType:
case Uint32ArrayType:
case BigInt64ArrayType:
case BigUint64ArrayType:
break;
default:
throwTypeError(globalObject, scope, "Typed array argument must be an Int8Array, Int16Array, Int32Array, Uint8Array, Uint16Array, Uint32Array, BigInt64Array, or BigUint64Array."_s);