compile_src

Function compile_src 

Source
pub fn compile_src(js_src: &[u8]) -> Result<Vec<u8>>
Expand description

Compiles JS source code to QuickJS bytecode.

Returns result with the success value being a vector of the bytecode and failure being the error message.

ยงArguments

  • config - A function that returns a config for Javy
  • modify_runtime - A function that returns a Javy runtime
  • js_src - A slice of bytes representing the JS source code