This commit is contained in:
☸️ 2024-12-05 13:43:48 +01:00 committed by GitHub
commit 30257fd547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,7 @@ func textDecode(call otto.FunctionCall) otto.Value {
if err != nil { if err != nil {
return ReportError("textDecode: could not export argument value:", err.Error()) return ReportError("textDecode: could not export argument value:", err.Error())
} }
byteArr, ok := arg.([]byte) byteArr, ok := arg.([]uint8)
if !ok { if !ok {
return ReportError("textDecode: single argument must be of type []uint8.", argc) return ReportError("textDecode: single argument must be of type []uint8.", argc)
} }