From 30257fd547a0f218b9051d3b65c722ecb2a654b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=B8=EF=B8=8F?= <29265684+buffermet@users.noreply.github.com> Date: Thu, 5 Dec 2024 13:43:48 +0100 Subject: [PATCH] misc --- js/data.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }