quickjs_runtime::quickjs_utils::dates

Function new_date

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

create a new instance of a Date object

ยงSafety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid