Function chakracore_sys::JsDefineProperty [] [src]

pub unsafe extern "system" fn JsDefineProperty(
    object: JsValueRef,
    propertyId: JsPropertyIdRef,
    propertyDescriptor: JsValueRef,
    result: *mut bool
) -> JsErrorCode

Defines a new object's own property from a property descriptor. Requires an active script context. The object that has the property. The ID of the property. The property descriptor. Whether the property was defined. The code JsNoError if the operation succeeded, a failure code otherwise.