blob: 75acb7aedd36205c7b177e326344fd845b2228cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
var desc = Object.getOwnPropertyDescriptor(Tuple.isTuple, "length");
assertEq(desc.value, 1);
assertEq(desc.writable, false);
assertEq(desc.enumerable, false);
assertEq(desc.configurable, true);
desc = Object.getOwnPropertyDescriptor(Tuple.isTuple, "name");
assertEq(desc.value, "isTuple");
assertEq(desc.writable, false);
assertEq(desc.enumerable, false);
assertEq(desc.configurable, true);
assertEq(isConstructor(Tuple.isTuple), false);
assertThrowsInstanceOf(() => {
let t = #[1];
new t.isTuple()();
}, TypeError, '`let t = #[1]; new t.isTuple()` throws TypeError');
reportCompare(0, 0);
|