Function ul_sys::JSObjectSetPropertyForKey[][src]

pub unsafe extern "C" fn JSObjectSetPropertyForKey(
    ctx: JSContextRef,
    object: JSObjectRef,
    propertyKey: JSValueRef,
    value: JSValueRef,
    attributes: JSPropertyAttributes,
    exception: *mut JSValueRef
)
Expand description

@function @abstract Sets a property on an object using a JSValueRef as the property key. @param ctx The execution context to use. @param object The JSObject whose property you want to set. @param propertyKey A JSValueRef containing the property key to use when looking up the property. @param value A JSValueRef to use as the property’s value. @param attributes A logically ORed set of JSPropertyAttributes to give to the property. @param 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. @discussion This function is the same as performing “object[propertyKey] = value” from JavaScript.