Fix test.
This commit is contained in:
parent
044484c756
commit
cfdca74beb
@ -82,6 +82,7 @@ fn test_options_strict_var() -> Result<(), Box<EvalAltResult>> {
|
||||
|
||||
assert!(engine.compile("let x = if y { z } else { w };").is_err());
|
||||
|
||||
#[cfg(not(feature = "no_object"))]
|
||||
engine.compile_with_scope(&mut scope, "if x.abs() { y } else { x + y.len };")?;
|
||||
|
||||
engine.compile("let y = 42; let x = y;")?;
|
||||
|
Loading…
Reference in New Issue
Block a user