From 9e2c77792dbc26de42d3c5015faaf0b2d5b8f522 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 11 Nov 2019 12:00:38 +0000 Subject: [PATCH] * Fix EndsWith declaration --- packages/rtl/js.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/rtl/js.pas b/packages/rtl/js.pas index 4c1775d..4e2f12c 100644 --- a/packages/rtl/js.pas +++ b/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;