Skip to content

Commit

Permalink
allow native in dict
Browse files Browse the repository at this point in the history
  • Loading branch information
xypwn committed Aug 23, 2024
1 parent 76dad8a commit f885704
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 f885704

Please sign in to comment.