Use debug_assert.
This commit is contained in:
@@ -35,7 +35,7 @@ impl Engine {
|
||||
rewind_scope: bool,
|
||||
pos: Position,
|
||||
) -> RhaiResult {
|
||||
assert_eq!(fn_def.params.len(), args.len());
|
||||
debug_assert_eq!(fn_def.params.len(), args.len());
|
||||
|
||||
self.track_operation(global, pos)?;
|
||||
|
||||
|
Reference in New Issue
Block a user