On Tue, Apr 22, 2025 at 10:04 AM jmr <audrius.butkevic...@gmail.com> wrote: > > Is there a reason why RequestInterrupt does not run under DisallowJavascript > scope in that case? > The docs don't seem to cover that (why is that allowed), or explain what > happens if you execute javascript in the interrupt. > > RequestInterrupt does interrupt while(true){}, as does the equivalent > interrupt in SpiderMonkey, so it does do what I want, it's just that the > safety warning.
Probably just an oversight. RequestInterrupt predates DisallowJavascriptExecutionScope. The reason the documentation doesn't go in detail is because it's effectively UB: there are no guarantees as to what will happen. -- -- 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 visit https://groups.google.com/d/msgid/v8-users/CAHQurc8dXdx6uN-QLN%3Db4Qv3kdiKTXSN18mswt1xGu2uCZaSYg%40mail.gmail.com.