quickjs_runtime::quickjs_utils::objects

Function 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