blob: 067a5d5ea26dccbcf496adb6559e6498d3779ab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
assertThrowsInstanceOf(
() => new Tuple(),
TypeError,
"Tuple is not a constructor"
);
assertEq(typeof Tuple(), "tuple");
assertEq(typeof Object(Tuple()), "object");
assertEq(Tuple() instanceof Tuple, false);
assertEq(Object(Tuple()) instanceof Tuple, true);
assertEq(Tuple().__proto__, Tuple.prototype);
assertEq(Object(Tuple()).__proto__, Tuple.prototype);
assertEq(Tuple.prototype.constructor, Tuple);
if (typeof reportCompare === "function") reportCompare(0, 0);
|