The callback invoked when collecting the names of an object’s properties.
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The execution context to use.
The JSObject whose property names are being collected.
If you named your function
Get, you would declare it like this:
Property name accumulators are used by
JSProperty to add property names to accumulator. A class's
get callback only needs to provide the names of properties that the class vends through a custom
set callback. Other properties, including statically declared properties, properties vended by other classes, and properties belonging to object's prototype, are added independently.