Skip to content

Commit

Permalink
Merge pull request #317 from xypwn/main
Browse files Browse the repository at this point in the history
allow native in dict
  • Loading branch information
refaktor authored Aug 23, 2024
2 parents f1affde + 21f1c1c commit f5597fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evaldo/builtins.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ func getFrom(ps *env.ProgramState, data any, key any, posMode bool) env.Object {
return v1
case *env.List:
return v1
case env.Native:
return v1
case nil:
ps.FailureFlag = true
return env.NewError("missing key")
Expand Down

0 comments on commit f5597fa

Please sign in to comment.