summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Set/getter-name.js
blob: 9a3e84fa45b97544d6de69110a343d3f89c91ecd (plain)
1
2
3
4
5
6
7
8
9
10
var BUGNUMBER = 1180290;
var summary = 'Set getters should have get prefix';

print(BUGNUMBER + ": " + summary);

assertEq(Object.getOwnPropertyDescriptor(Set, Symbol.species).get.name, "get [Symbol.species]");
assertEq(Object.getOwnPropertyDescriptor(Set.prototype, "size").get.name, "get size");

if (typeof reportCompare === 'function')
  reportCompare(true, true);