pub fn parse_eval_script(src: &str, strict: bool) -> Result<Program>Expand description
Parse src as a direct eval body, inheriting new.target from the caller.
eval("new.target") is legal inside a function because the eval’d code runs in the
caller’s function context, even though the source being parsed is a bare script with
no function of its own. strict is the caller’s mode, which a sloppy eval does not
derive from its own text.