Skip to main content

parse_eval

Function parse_eval 

Source
pub fn parse_eval(
    src: &str,
    allow_super: bool,
    caller_strict: bool,
) -> Result<Vec<Stmt>, String>
Expand description

Parse the source text of an eval / vm script. Identical to parse except that super is accepted at the top level when allow_super says the code runs inside a method (a direct eval there may use it).