---
id: "accessor-methods"
kind: "web-feature"
canonical: "https://timetostable.com/feature/accessor-methods"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Accessor methods (`accessor-methods`)

The __defineGetter__() and __defineSetter__() methods of objects bind a function to a property, which is called on setting or reading the property.

- **Group**: JavaScript
- **Baseline**: Limited Availability
- **Specification**: https://tc39.es/ecma262/multipage/fundamental-objects.html#sec-object.prototype-legacy-accessor-methods
- **Constituent BCD keys**: 4

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 1 | 2004-11-09 |
| Safari on iOS | 1 | 2007-06-29 |
| Safari | 3 | 2007-10-26 |
| Chrome | 1 | 2008-12-11 |
| Firefox for Android | 4 | 2011-03-29 |
| Chrome Android | 18 | 2012-06-27 |
| Edge | 12 | 2015-07-29 |

