From 14009697f07c8f82a15a353b1b7bff305640f662 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Fri, 6 Jun 2025 17:38:38 -0500 Subject: [PATCH] add byte slice to string conversion to PushValue --- wrapper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrapper.go b/wrapper.go index 12ad81d..cc36faa 100644 --- a/wrapper.go +++ b/wrapper.go @@ -206,6 +206,8 @@ func (s *State) PushValue(v any) error { s.PushNumber(val) case string: s.PushString(val) + case []byte: + s.PushString(string(val)) case []int: return s.pushIntSlice(val) case []string: