pub unsafe extern "C" fn JSObjectSetProperty(
ctx: JSContextRef,
object: JSObjectRef,
propertyName: JSStringRef,
value: JSValueRef,
attributes: JSPropertyAttributes,
exception: *mut JSValueRef,
)
Expand description
Sets a property on an object.
ctx
: The execution context to use.object
: TheJSObjectRef
whose property you want to set.propertyName
: AJSStringRef
containing the property’s name.value
: AJSValueRef
to use as the property’s value.attributes
: A logically ORed set ofJSPropertyAttributes
to give to the property.exception
: A pointer to aJSValueRef
in which to store an exception, if any. PassNULL
if you do not care to store an exception.