Sets a property on an object.
- iOS 7.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The execution context to use.
The JSObject whose property you want to set.
A JSString containing the property's name.
A JSValue to use as the property's value.
A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
A logically ORed set of JSPropertyAttributes to give to the property.