pub fn script_to_engine(
base: &Engine,
script: &str,
file: Option<&Path>,
) -> Option<Engine>Expand description
Creates an engine from a script by cloning a base engine and parsing the closure. On error, prints to stderr and emits JSON to stdout, returning None.