Module quickjs_runtime::quickjs_utils::compile
source · Expand description
Utils to compile script to bytecode and run script from bytecode
Functions§
- 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().
- read a compiled function from bytecode, see to_bytecode for an example
- run a compiled function, see compile for an example
- write a function to bytecode