blob: 8f0875721cbee2391aa5c3f982fa4a5d5046ec04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
const TypedArrayPrototype = Object.getPrototypeOf(Int8Array.prototype);
const {get: toStringTag} = Object.getOwnPropertyDescriptor(TypedArrayPrototype, Symbol.toStringTag);
const otherGlobal = newGlobal();
for (let constructor of anyTypedArrayConstructors) {
let ta = new otherGlobal[constructor.name](0);
assertEq(toStringTag.call(ta), constructor.name);
}
if (typeof reportCompare === "function")
reportCompare(true, true);
|