add byte slice to string conversion to PushValue

This commit is contained in:
Sky Johnson 2025-06-06 17:38:38 -05:00
parent f47d36eb8b
commit 14009697f0

View File

@ -206,6 +206,8 @@ func (s *State) PushValue(v any) error {
s.PushNumber(val) s.PushNumber(val)
case string: case string:
s.PushString(val) s.PushString(val)
case []byte:
s.PushString(string(val))
case []int: case []int:
return s.pushIntSlice(val) return s.pushIntSlice(val)
case []string: case []string: