Re: [v8-users] d8 needs a function similar to JSC's `drainMicrotasks()`

2016-05-19 Thread Adam Klein
The assertOptimized approach seems like a good balance to me of: 1. Avoiding duplicating the assertion helpers and 2. Avoiding broadening d8's runtime environment Then the only other requirement is that the usage of assertAsync (or whatever it's called) in tests isn't affected by the concerns

[v8-users] Passive Error Event

2016-05-19 Thread PhistucK
I am not really sure about how to test it, but I guess you know more about it. Browsers support the "error" (window.onerror or window.addEventListener("error", ...)) event, which, if you call e.preventDefault() and the like, apparently catches the exception (I could not get it to work for some

[v8-users] How to create generator function or object from C/C++ code?

2016-05-19 Thread Bogdan Padalko
Hi, is it possible to create generator function and/or generator object from v8 API? If no, are there any plans to do that? I do v8 engine integration and at this time I have to wrap raw functions into js generator function. P.S.: I would also ask the same question about async functions, but