diff --git a/boa_cli/src/debug/limits.rs b/boa_cli/src/debug/limits.rs index 6164043c037..49fff9970d5 100644 --- a/boa_cli/src/debug/limits.rs +++ b/boa_cli/src/debug/limits.rs @@ -5,7 +5,7 @@ use boa_engine::{ }; fn get_loop(_: &JsValue, _: &[JsValue], context: &mut Context<'_>) -> JsResult { - let max = context.runtime_limits_mut().loop_iteration_limit(); + let max = context.runtime_limits().loop_iteration_limit(); Ok(JsValue::from(max)) }