Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
CeleritasCelery committed Jan 4, 2024
1 parent d1afcfc commit 777b42f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,9 @@ impl Rt<Gc<Function<'_>>> {
match self.get(cx) {
Function::ByteFn(f) => {
root!(f, cx);
crate::bytecode::call(f, args, name, env, cx)
.map_err(|e| e.add_trace(name, args))
}
Function::SubrFn(f) => {
(*f).call(args.len(), args, env, cx).map_err(|e| add_trace(e, name, args))
crate::bytecode::call(f, args, name, env, cx).map_err(|e| e.add_trace(name, args))
}
Function::SubrFn(f) => (*f).call(args, env, cx).map_err(|e| add_trace(e, name, args)),
Function::Cons(_) => {
crate::interpreter::call_closure(self.try_into().unwrap(), args, name, env, cx)
.map_err(|e| e.add_trace(name, args))
Expand Down

0 comments on commit 777b42f

Please sign in to comment.