"string".repeat(0)

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Nov 22 12:44:56 PST 2012


See https://bugs.ecmascript.org/show_bug.cgi?id=922 

What do people think?  Should a repeat count of 0 be accepted and produce an empty string?  Does this case show up frequently in string processing algorithms?

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121122/9866d555/attachment.html>


More information about the es-discuss mailing list