From cfdca74bebb93920b1479f4a9ed2f8011b536dfc Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 30 Aug 2022 12:31:47 +0800 Subject: [PATCH] Fix test. --- tests/options.rs | 1 + 1 file changed, 1 insertion(+) 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;")?;