The callback invoked when getting a property’s value.
- iOS 7.0+
- macOS 10.5+
- tvOS 9.0+
The execution context to use.
The JSObject to search for the property.
A JSString containing the name of the property to get.
A pointer to a JSValueRef in which to return an exception, if any.
The property's value if the object has the property, otherwise
If you named your function
Get, you would declare it like this:
If this function returns
NULL, the get request forwards to object’s statically declared properties, then its parent class chain (which includes the default object class), then its prototype chain.