Re: [v8-users] LowMemoryNotification in for...of loop.

2016-01-22 Thread Jane Chen
Jochen, My bad. I only registered a callback for the iterable object returned from sequence(), but not for the iterator returned from [Symbol.iterator](). v8 did the right thing by freeing the iterable object in this case. So the bug was in my code. Thanks for your response. Jane On Frida

Re: [v8-users] How to handle out-of-memory type of errors.

2016-01-22 Thread Jochen Eisinger
can you post a standalone repro case? Otherwise, setting a break point in v8's internal fatal error handler and checking why it doesn't invoke yours would be a possible way to debug this. On Thu, Jan 21, 2016 at 11:59 PM Jane Chen wrote: > Yes, I do get fatal errors like these from v8, but my fa

Re: [v8-users] LowMemoryNotification in for...of loop.

2016-01-22 Thread Jochen Eisinger
would you mind filing a bug for this? Ideally, with a self-contained repro case! thanks -jochen On Fri, Jan 22, 2016 at 12:23 AM Jane Chen wrote: > Embedding v8 4.6.88. > > Suppose my native function sequence() returns a JavaScript iterable > wrapping a long sequence of internal objects; functi