summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/constructor/length.js
blob: 67169ef0d16e7624840b3bffdf094c4ee2cc700a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
/*
18 ECMAScript Standard Built-in Objects
...
Every built-in function object, including constructors, has a "length" property whose value is a non-negative integral Number. Unless otherwise specified, this value is equal to the number of required parameters shown in the subclause heading for the function description. Optional parameters and rest parameters are not included in the parameter count.
*/
var desc = Object.getOwnPropertyDescriptor(Tuple, "length");
assertEq(desc.value, 0);
assertEq(desc.writable, false);
assertEq(desc.enumerable, false);
assertEq(desc.configurable, true);

reportCompare(0, 0);