diff --git a/tests/options.rs b/tests/options.rs index 8bc27a1d..4f04f1ec 100644 --- a/tests/options.rs +++ b/tests/options.rs @@ -82,6 +82,7 @@ fn test_options_strict_var() -> Result<(), Box> { 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;")?;