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. -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.