Skip to main content

evaluate_with

Function evaluate_with 

Source
pub fn evaluate_with(
    source: &str,
    env: &dyn Fn(&str) -> Option<String>,
) -> Result<Node>
Expand description

Evaluate one !!js expression against a caller-supplied environment lookup, which maps a variable name to its value (None when unset).