Function chakracore_sys::JsCreatePropertyId [] [src]

pub unsafe extern "system" fn JsCreatePropertyId(
    name: *const c_char,
    length: usize,
    propertyId: *mut JsPropertyIdRef
) -> JsErrorCode

Creates the property ID associated with the name. Property IDs are specific to a context and cannot be used across contexts. Requires an active script context. The name of the property ID to get or create. The name may consist of only digits. The string is expected to be ASCII / utf8 encoded. length of the name in bytes The property ID in this runtime for the given name. The code JsNoError if the operation succeeded, a failure code otherwise.