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

print(BUGNUMBER + ": " + summary);

assertEq(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").get.name, "get __proto__");
assertEq(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set.name, "set __proto__");

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