thanks, i have modified the code. And i have another question. Im a nodejser, i want to use RequestInterrupt callback to do something by js code, because Node.js don not export the public C++ API but export a js Public API. If i can not call js code in RequestInterrupt callback, can i have other ways to do this ?
在2022年1月13日星期四 UTC+8 04:07:22<alex...@gmail.com> 写道: > I think it means that JavaScript code should not be called and maybe even > messing with data in the heap is a bad idea. Not sure about the latter. I > think the heap and JS stack are in indeterminate or at least intermediate > states that wouldn't tolerate interlopers when you enter the callback so > running JS code from there is a bad idea. It looks like you probably could > invoke RequestInterrupt inside the callback though that seems like a bit of > an oddball thing to do. > > HTH > > On Wednesday, January 12, 2022 at 12:00:46 PM UTC-6 anar...@gmail.com > wrote: > >> hi, i have a question about Isolate RequestInterrupt API. what do the >> "Registered >> |callback| must not reenter interrupted Isolate." mean? can i call >> RequestInterrupt >> again in RequestInterrupt callback. I think it is ok. And i find some code >> in v8 source code. >> [image: 飞书20220113-015705.png] >> > -- -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/5f214281-e70a-40fd-9803-7b7f733435e7n%40googlegroups.com.