JSObjectSetProperty top-level property

void Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, int attributes, Pointer<JSValueRef> exception) JSObjectSetProperty
final

Sets a property on an object. ctx The execution context to use. object The JSObject whose property you want to set. propertyName A JSString containing the property's name. 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.

Implementation

final void Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, int /*JSPropertyAttributes*/ attributes, Pointer<JSValueRef> exception) JSObjectSetProperty =
    jscLib
        .lookup<NativeFunction<Void Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef value, Uint32 attributes, Pointer<JSValueRef> exception)>>(
            'JSObjectSetProperty')
        .asFunction();