On Thu, Dec 25, 2014 at 2:45 AM, Jane Chen <[email protected]> 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.
