Limited Availability
JavaScript
id: 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.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
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