Skip to main content

execute

Function execute 

Source
pub fn execute(
    javascript: &str,
    event: &Value,
    limits: &Limits,
    host: impl FnMut(&str, Value) -> Result<Value, String> + 'static,
) -> Result<Value, ScriptError>
Expand description

Fresh QuickJS VM without filesystem, network, timers, Node globals or module loader. Every side effect passes through the trusted host, never event data. The host must bound blocking calls and enforce capabilities and transactions.