Update benchmark tests with filtering

This commit is contained in:
Michael Schimmel
2026-02-22 12:07:58 +01:00
parent cb94f20c0b
commit 5a017fb932
9 changed files with 69 additions and 35 deletions
+7 -7
View File
@@ -274,13 +274,13 @@ impl Environment {
// 2. Auto-apply: If the script returned a closure, we apply arguments to it.
let mut final_res = res;
if let Value::Object(obj) = &final_res {
if let Some(closure) = obj.as_any().downcast_ref::<crate::ast::vm::Closure>() {
final_res = match vm.run_with_args(closure, args) {
Ok(v) => v,
Err(e) => panic!("Myc Runtime Error (Closure): {}", e),
};
}
if let Value::Object(obj) = &final_res
&& let Some(closure) = obj.as_any().downcast_ref::<crate::ast::vm::Closure>()
{
final_res = match vm.run_with_args(closure, args) {
Ok(v) => v,
Err(e) => panic!("Myc Runtime Error (Closure): {}", e),
};
}
// 3. Resolve Tail Calls