Function quickjs_runtime::quickjs_utils::objects::create_object

source ·
pub unsafe fn create_object(
    context: *mut JSContext,
) -> Result<QuickJsValueAdapter, JsError>
Expand description

create a new simple object, e.g. let obj = {};

§Safety

when passing a context ptr please be sure that the corresponding QuickJsContext is still active