jSObjectSetPropertyForKey top-level property

void Function(Pointer<NativeType> ctx, Pointer<NativeType> object, Pointer<NativeType> propertyKey, Pointer<NativeType> value, int attributes, Pointer<Pointer<NativeType>> exception) jSObjectSetPropertyForKey
final

Sets a property on an object using a JSValueRef as the property key. This function is the same as performing "objectpropertyKey = value" from JavaScript. ctx (JSContextRef) The execution context to use. object (JSObjectRef) The JSObject whose property you want to set. propertyKey (JSValueRef) A JSValueRef containing the property key to use when looking up the property. value (JSValueRef) A JSValueRef to use as the property's value. attributes (JSPropertyAttributes) A logically ORed set of JSPropertyAttributes to give to the property. exception (JSValueRef*) A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.

Implementation

final void Function(Pointer ctx, Pointer object, Pointer propertyKey,
        Pointer value, int attributes, Pointer<Pointer> exception)
    jSObjectSetPropertyForKey = JscFfi.lib
        .lookup<
            NativeFunction<
                Void Function(Pointer, Pointer, Pointer, Pointer, Int32,
                    Pointer<Pointer>)>>('JSObjectSetPropertyForKey')
        .asFunction();