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

print(BUGNUMBER + ": " + summary);

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

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