Skip to main content

call

Function call 

Source
pub fn call(
    source: &str,
    file: &str,
    function: &str,
    input: &Value,
    install: &dyn Fn(&mut Context, &Logs) -> JsResult<()>,
) -> Result<Success, Failure>
Expand description

Evaluate source (named file in messages), then call the global function function with input as its single argument.

install runs after console is defined and before the file is evaluated, and is where a caller adds its host objects.