pub fn compile_module(
context: *mut JSContext,
script: &str,
file_name: &str,
) -> Result<OwnedJsValue, ExecutionError>
Expand description
compile a script, will result in a JSValueRef with tag JS_TAG_FUNCTION_BYTECODE or JS_TAG_MODULE. It can be executed with run_compiled_function().