jSObjectSetProperty top-level property

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

Sets a property on an object. ctx (JSContextRef) The execution context to use. object (JSObjectRef) The JSObject whose property you want to set. propertyName (JSStringRef) A JSString containing the property's name. 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 propertyName,
        Pointer value, int attributes, Pointer<Pointer> exception)
    jSObjectSetProperty = JscFfi.lib
        .lookup<
            NativeFunction<
                Void Function(Pointer, Pointer, Pointer, Pointer, Int32,
                    Pointer<Pointer>)>>('JSObjectSetProperty')
        .asFunction();