Update benchmark tests with filtering
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user