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

print(BUGNUMBER + ": " + summary);

assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "buffer").get.name, "get buffer");
assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "byteLength").get.name, "get byteLength");
assertEq(Object.getOwnPropertyDescriptor(DataView.prototype, "byteOffset").get.name, "get byteOffset");

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