pub fn compile_script_with_source(
program: &Program,
source: &str,
) -> Result<Function, SyntaxError>Expand description
Compile a script, keeping its text so Function.prototype.toString can answer with
the original source.
The separate entry point rather than a parameter on compile_script because the
tests and the disassembler compile from an AST they built themselves and have no
source to give; they keep the None behaviour they already relied on.