pub unsafe extern "C-unwind" fn JSObjectSetPropertyAtIndex(
ctx: JSContextRef,
object: JSObjectRef,
property_index: c_uint,
value: JSValueRef,
exception: *mut JSValueRef,
)
Available on crate features
JSObjectRef
and JSBase
only.Expand description
Sets a property on an object by numeric index.
Parameter ctx
: The execution context to use.
Parameter object
: The JSObject whose property you want to set.
Parameter propertyIndex
: The property’s name as a number.
Parameter value
: A JSValue to use as the property’s value.
Parameter 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.
Calling JSObjectSetPropertyAtIndex is equivalent to calling JSObjectSetProperty with a string containing propertyIndex, but JSObjectSetPropertyAtIndex provides optimized access to numeric properties.