Axel Rauschmayer (2013-08-24T19:43:53.000Z)
Well, obviously it doesn’t make much sense to do that for `text()`, but it would be great to have for `exec()`.

On Aug 24, 2013, at 21:39 , Axel Rauschmayer <axel at rauschma.de> wrote:

> At the moment, the following two methods abuse regular expressions as iterators (if the /g flag is set):
> 
> * `RegExp.prototype.test()`
> * `RegExp.prototype.exec()`
> 
> Would it make sense to create similar methods that return something iterable, so that for-of can iterate over the result?

-- 
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/20130824/1859b413/attachment-0001.html>
forbes at lindesay.co.uk (2013-08-25T00:58:08.188Z)
Well, obviously it doesn’t make much sense to do that for `test()`, but it would be great to have for `exec()`.