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

Axel Rauschmayer axel at rauschma.de
Fri Aug 3 09:40:56 PDT 2012


Really necessary – given that slice is a perfect replacement?

On Aug 3, 2012, at 18:24 , David Bruant <bruant.d at gmail.com> 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] https://twitter.com/g_marty/status/231404856492036096
> [2] https://twitter.com/mathias/status/231418712580845568
> [3] http://kangax.github.com/es5-compat-table/non-standard/
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120803/d86185de/attachment.html>


More information about the es-discuss mailing list