quickjs_runtime::quickjs_utils::compile

Function from_bytecode

source
pub unsafe fn from_bytecode(
    context: *mut JSContext,
    bytecode: &[u8],
) -> Result<QuickJsValueAdapter, JsError>
Expand description

read a compiled function from bytecode, see to_bytecode for an example

ยงSafety

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