diff --git a/Cargo.lock b/Cargo.lock index 4ec758a..d1f3b0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,9 +240,9 @@ checksum = "e825f6987101665dea6ec934c09ec6d721de7bc1bf92248e1d5810c8cd636b77" [[package]] name = "fift" -version = "0.1.12" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19c4edc380de7ff4c131e071faaf035b19f4085ebff564a19c5abcbbb5ceea3b" +checksum = "f5ca9631c1aa36c049d126001e0c8f4058da903ff8d56c7b5dad7cd290da4983" dependencies = [ "ahash", "anyhow", diff --git a/fift-wasm/src/lib.rs b/fift-wasm/src/lib.rs index d13a3c6..d01be07 100644 --- a/fift-wasm/src/lib.rs +++ b/fift-wasm/src/lib.rs @@ -72,7 +72,11 @@ impl FiftState { let context = fift::Context::new(env_writer_ref, output_writer_ref) .with_basic_modules() - .handle_error()?; + .handle_error()? + .with_limits(fift::core::ExecutionLimits { + max_steps: Some(10_000_000), + max_include_depth: Some(100), + }); Ok(FiftState { context,