JSObjectSetPropertyForKey top-level property
void Function(JSContextRef ctx, JSObjectRef object, JSValueRef propertyKey, JSValueRef value, int attributes, Pointer<JSValueRef> exception)
JSObjectSetPropertyForKey
final
MacOS 10.15, iOS 13.0
Sets a property on an object using a JSValueRef as the property key.
ctx The execution context to use.
object The JSObject whose property you want to set.
propertyKey A JSValueRef containing the property key to use when looking up the property.
value A JSValueRef to use as the property's value.
attributes A logically ORed set of JSPropertyAttributes to give to the property.
exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@discussion This function is the same as performing "objectpropertyKey = value" from JavaScript.
Implementation
final void Function(JSContextRef ctx, JSObjectRef object, JSValueRef propertyKey, JSValueRef value, int /*JSPropertyAttributes*/ attributes, Pointer<JSValueRef> exception) JSObjectSetPropertyForKey =
jscLib
.lookup<NativeFunction<Void Function(JSContextRef ctx, JSObjectRef object, JSValueRef propertyKey, JSValueRef value, Uint32 attributes, Pointer<JSValueRef> exception)>>(
'JSObjectSetPropertyForKey')
.asFunction();