From f885704d426e384b944d5b482f4c451645e9057a Mon Sep 17 00:00:00 2001 From: xypwn <54681180+xypwn@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:08:34 +0200 Subject: [PATCH] allow native in dict --- evaldo/builtins.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evaldo/builtins.go b/evaldo/builtins.go index ec590492..bcc8a6e8 100644 --- a/evaldo/builtins.go +++ b/evaldo/builtins.go @@ -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")