Function quickjs_runtime::quickjs_utils::compile::from_bytecode
source · [−]pub unsafe fn from_bytecode(
context: *mut JSContext,
bytecode: &[u8]
) -> Result<JSValueRef, 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