Browse Source

* Fix EndsWith declaration

michael 5 years ago
parent
commit
9e2c77792d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/rtl/js.pas

+ 2 - 1
packages/rtl/js.pas

@@ -300,7 +300,8 @@ type
     function charCodeAt(aIndex : NativeInt) : NativeInt;
     function codePointAt(aIndex : NativeInt) : NativeInt;
     function concat(s : string) : string; varargs;
-    function endsWith(aSearchString : string; Pos : NativeInt = 0) : boolean;
+    function endsWith(aSearchString : string) : boolean; overload;
+    function endsWith(aSearchString : string; Pos : NativeInt) : boolean; overload;
     function includes(aSearchString : string; Pos : NativeInt = 0) : boolean;
     function indexOf(aSearchString : String; Pos : NativeInt = 0) : Integer;
     function lastIndexOf(aSearchString : String) : NativeInt;overload;