Browse Source

They forgot the overload.

Henrique Gottardi Werlang 3 years ago
parent
commit
9d0b5468d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/rtl/js.pas

+ 2 - 2
packages/rtl/js.pas

@@ -880,8 +880,8 @@ type
     FFatal : Boolean; external name 'fatal';
     FIgnoreBOM : Boolean; external name 'ignoreBOM';
   Public
-    Constructor New(utfLabel : String);
-    Constructor New(utfLabel : String; Options : TJSTextDecoderOptions);
+    Constructor New(utfLabel : String); overload;
+    Constructor New(utfLabel : String; Options : TJSTextDecoderOptions); overload;
     Function decode(arr : TJSTypedArray) : String; overload;
     Function decode(arr : TJSArrayBuffer) : String; overload;
     Function decode(arr : TJSTypedArray; opts : TJSTextDecodeOptions) : String; overload;