diff --git a/js/data.go b/js/data.go index c3c2e164..346a0aa4 100644 --- a/js/data.go +++ b/js/data.go @@ -41,7 +41,7 @@ func textDecode(call otto.FunctionCall) otto.Value { if err != nil { return ReportError("textDecode: could not export argument value:", err.Error()) } - byteArr, ok := arg.([]byte) + byteArr, ok := arg.([]uint8) if !ok { return ReportError("textDecode: single argument must be of type []uint8.", argc) }