From b76a2be7c37dc00dca3e5be934bb2b31702dd663 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 24 Jan 2022 08:49:41 +0800 Subject: [PATCH] Fix unchecked build. --- tests/throw.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/throw.rs b/tests/throw.rs index 9aaccab0..79bd2424 100644 --- a/tests/throw.rs +++ b/tests/throw.rs @@ -29,6 +29,7 @@ fn test_try_catch() -> Result<(), Box> { 123 ); + #[cfg(not(feature = "unchecked"))] assert_eq!( engine.eval::("let x = 42; try { let y = 123; print(x/0); } catch { x = 0 } x")?, 0