[][src]Function boa::parse

pub fn parse<T: AsRef<[u8]>>(
    src: T,
    strict_mode: bool
) -> StdResult<StatementList, ParseError>

Parses the given source code.

It will return either the statement list AST node for the code, or a parsing error if something goes wrong.