BASELINE NowYouCanUse.com
Limited Availability JavaScript

Accessor methods

The __defineGetter__() and __defineSetter__() methods of objects bind a function to a property, which is called on setting or reading the property.
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Jul 29, 2015.
Desktop Browser Engine Support
Google Chrome
1
Supported
Mozilla Firefox
1
Supported
Apple Safari
3
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
4
Safari iOS
1
Specifications and References
id: accessor-methods