Re: PSA: nsISimpleEnumerator now works as a JS iterator

2018-08-23 Thread Mike Conley
Wow, this is a great improvement! Thank you! On Thu, Aug 23, 2018, 6:26 PM Kris Maglione wrote: > Oh, and from C++, there's also now a range iterator wrapper with > similar semantics: > > for (auto& docShell : SimpleEnumerator(docShellEnum)) { > ... > } > > On Thu, Aug 23, 2018 at 03:19:

Re: PSA: nsISimpleEnumerator now works as a JS iterator

2018-08-23 Thread Kris Maglione
Oh, and from C++, there's also now a range iterator wrapper with similar semantics: for (auto& docShell : SimpleEnumerator(docShellEnum)) { ... } On Thu, Aug 23, 2018 at 03:19:55PM -0700, Kris Maglione wrote: As of bug 1484496, any C++-implemented nsISimpleEnumertor instance can be used a