Moving String.prototype.substr to normative part of the spec

Allen Wirfs-Brock allen at
Fri Aug 3 09:58:57 PDT 2012

substr is in Annex B, which in ES5.1 is an informative annex.  In ES6, the content of Annex B will be optional normative.  Required for web user agents, but optional for other hosts.

On Aug 3, 2012, at 9:24 AM, David Bruant wrote:

> Hi,
> A code joke from a colleague [1] revealed [2] that String.prototype.substr is not part of ES5.1 as normative.
> Kangax tables indicate that this property is in all modern browsers [3].
> I think it'd be worth moving this method to the normative part of the spec and that tests be added to test262 (since tests are on a chapter basis, I assume there is currently none for this method).
> David
> [1]
> [2]
> [3]
> _______________________________________________
> es-discuss mailing list
> es-discuss at

More information about the es-discuss mailing list