Function javascriptcore_sys::JSObjectSetProperty
[−]
[src]
pub unsafe extern "C" fn JSObjectSetProperty(
ctx: JSContextRef,
object: JSObjectRef,
propertyName: JSStringRef,
value: JSValueRef,
attributes: JSPropertyAttributes,
exception: *mut JSValueRef
)
Sets a property on an object.
ctx: The execution context to use.object: TheJSObjectwhose property you want to set.propertyName: AJSStringcontaining the property's name.value: AJSValueto use as the property's value.attributes: A logically ORed set ofJSPropertyAttributesto give to the property.exception: A pointer to aJSValueRefin which to store an exception, if any. PassNULLif you do not care to store an exception.