Ben, I'm able to reproduce it on 3.30. Here's the bug I filed: https://code.google.com/p/v8/issues/detail?id=3791
Jane On Thursday, December 25, 2014 3:55:12 AM UTC-8, Ben Noordhuis wrote: > > On Thu, Dec 25, 2014 at 2:45 AM, Jane Chen <[email protected] > <javascript:>> wrote: > > I have a program embedding v8 3.24, with iterators and generators > enabled. > > > > After the following JavaScript code runs, garbage collection is run, but > the > > wrapped objects returned from gen() do not get a callback: > > > > function* gen(limit){ > > for (var i = 0; i < limit; i++) > > yield wrap(new Date()); > > } > > var result=[]; > > for (var i of gen(2)){ > > result.push(i); > > } > > result; > > > > > > This only happens when I use the generator function to return wrapped > > objects. So I wonder whether this is a bug in the generator > implementation. > > It's quite possible. Have you tried it with 3.30? > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
