Skip to content

Commit

Permalink
append default functions to function caller
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
  • Loading branch information
fjogeleit committed Aug 7, 2024
1 parent d2e288e commit d929388
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/interpreter/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type functionCaller struct {

func NewFunctionCaller(funcs ...functions.FunctionEntry) *functionCaller {
fTable := map[string]functionEntry{}

funcs = append(functions.GetDefaultFunctions(), funcs...)
for _, f := range funcs {
fTable[f.Name] = functionEntry{
arguments: f.Arguments,
Expand Down

0 comments on commit d929388

Please sign in to comment.