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.