From 477ed18c1c6f31d6d2278b7d00cfb3c06b39ed44 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 9 Apr 2026 14:08:15 -0700 Subject: [PATCH] Editorial: fix error in String.prototype.endsWith note (#3812) --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index c5716182c0..bdd4660ab0 100644 --- a/spec.html +++ b/spec.html @@ -35627,7 +35627,7 @@

String.prototype.endsWith ( _searchString_ [ , _endPosition_ ] )

1. Return *false*. -

This method returns *true* if the sequence of code units of _searchString_ converted to a String is the same as the corresponding code units of this object (converted to a String) starting at _endPosition_ - length(this). Otherwise it returns *false*.

+

This method returns *true* if the sequence of code units of _searchString_ converted to a String is the same as the corresponding code units of this object (converted to a String) starting at _endPosition_ - length(_searchString_). Otherwise it returns *false*.

Throwing an exception if the first argument is a RegExp is specified in order to allow future editions to define extensions that allow such argument values.