JSObjectSetPropertyAtIndex top-level property
void Function(JSContextRef ctx, JSObjectRef object, int propertyIndex, JSValueRef value, Pointer<JSValueRef> exception)
JSObjectSetPropertyAtIndex
final
Sets a property on an object by numeric index.
Calling JSObjectSetPropertyAtIndex is equivalent to calling JSObjectSetProperty with a string containing propertyIndex, but JSObjectSetPropertyAtIndex provides optimized access to numeric properties.
ctx
(JSContextRef) The execution context to use.
object
(JSObjectRef) The JSObject whose property you want to set.
propertyIndex
(unsigned) The property's name as a number.
value
(JSValueRef) A JSValue to use as the property's value.
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(
JSContextRef ctx,
JSObjectRef object,
int propertyIndex,
JSValueRef value,
Pointer<JSValueRef> exception,
)
JSObjectSetPropertyAtIndex =
kLookup<
NativeFunction<
Void Function(
JSContextRef,
JSObjectRef,
Uint32,
JSValueRef,
Pointer<JSValueRef>,
)
>
>('JSObjectSetPropertyAtIndex').asFunction();