From fd54970bf53bfa5085c52623dbb52a4f77584e08 Mon Sep 17 00:00:00 2001 From: Henrique Gottardi Werlang Date: Thu, 27 Feb 2025 15:39:10 -0300 Subject: [PATCH] Changed the returning type to the type defined in the documentation. --- packages/rtl/src/weborworker.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rtl/src/weborworker.pas b/packages/rtl/src/weborworker.pas index 5cbdb6c..949d670 100644 --- a/packages/rtl/src/weborworker.pas +++ b/packages/rtl/src/weborworker.pas @@ -309,7 +309,7 @@ type function slice(aStart,aEnd : NativeInt) : TJSBlob; overload; function slice(aStart,aEnd : NativeInt; AContentType : String) : TJSBlob; overload; function arrayBuffer : TJSPromise; - function bytes: TJSPromise; + function bytes: TJSUint8Array; async; function stream: TJSReadableStream; function text: TJSPromise; property size : NativeInt read FSize;