Skip to main content

JS_SetPropertyFunctionList

Function JS_SetPropertyFunctionList 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_SetPropertyFunctionList( ctx: *mut JsContext, obj: JsValue, tab: *const JSCFunctionListEntry, len: c_int, ) -> c_int
Expand description

JS_SetPropertyFunctionList: install a static table of definitions.

The table is the module’s .data, read entry by entry. Every JS_DEF_* the reference documents is handled except JS_DEF_ALIAS/JS_DEF_PROP_ATOM, which nothing in the acceptance surface uses and which need an atom table this layer does not have.

§Safety

ctx must be a live context, obj a live object JSValue, and tab must point at len valid entries.