Fix builds.

This commit is contained in:
Stephen Chung
2022-05-21 22:13:02 +08:00
parent 1abec0a8a8
commit ee886fc719
3 changed files with 4 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ impl Engine {
let ast = self.compile_with_scope_and_optimization_level(
scope,
&[script],
self.optimization_level(),
self.optimization_level,
)?;
self.eval_ast_with_scope(scope, &ast)
}