blob: 0c4c77af6f4276232ea06123e09d7c9c130906a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
var desc = Object.getOwnPropertyDescriptor(Tuple.from, "length");
assertEq(desc.value, 1);
assertEq(desc.writable, false);
assertEq(desc.enumerable, false);
assertEq(desc.configurable, true);
assertEq(isConstructor(Tuple.from), false);
assertThrowsInstanceOf(() => {
new Tuple.from([]);
}, TypeError, '`new Tuple.from()` throws TypeError');
reportCompare(0, 0);
|