Skip to content

Commit

Permalink
Fix extension type apply
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Sep 4, 2024
1 parent 33a72e7 commit d8b67e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eval/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ func (s *State) applyExtension(fn object.Extension, args []object.Object) object
l, fn.Inspect())} // shows usage
}
for i, arg := range args {
arg = object.Value(arg) // deref.
args[i] = arg
if i >= len(fn.ArgTypes) {
break
}
Expand Down

0 comments on commit d8b67e5

Please sign in to comment.