Add compile_scripts_with_scope.

This commit is contained in:
Stephen Chung
2020-05-13 11:57:07 +08:00
parent c37a2cc886
commit 8e8816cb0c
2 changed files with 66 additions and 8 deletions

View File

@@ -792,7 +792,7 @@ impl Engine {
// No optimizations because we only run it once
let mut ast = self.compile_with_scope_and_optimization_level(
&Scope::new(),
script,
&[script],
OptimizationLevel::None,
)?;