jSObjectSetPropertyAtIndex top-level property
void Function(Pointer<NativeType> ctx, Pointer<NativeType> object, int propertyIndex, Pointer<NativeType> value, Pointer<Pointer<NativeType> > 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(Pointer ctx, Pointer object, int propertyIndex,
Pointer value, Pointer<Pointer> exception) jSObjectSetPropertyAtIndex =
JscFfi.lib
.lookup<
NativeFunction<
Void Function(Pointer, Pointer, Int32, Pointer,
Pointer<Pointer>)>>('JSObjectSetPropertyAtIndex')
.asFunction();