quickjs-rs
quickjs-rs copied to clipboard
Add interrupt handler callback support
QuickJS supports an "interrupt handler" to allow JS execution to be stopped in case of e.g. Ctrl+C or timeouts. I've added support for it to the API. The type constraints on it are probably stricter than they need to be but this was sufficient for my purposes.
Needs a cargo fmt.