Cancel/Interrupt active evaluation
Author: mattsseCreated Oct 30, 2023Updated Aug 10, 2026
LabelsA-EnhancementA-API
feature
I would like to be able to cancel an evaluation (or JsValue::call) after a certain timeout.
Perhaps this is already possible, but I wasn't able to find it.
boja for example has interrupts:
my motivation for this is to have the option to terminate a (malicious) evaluation for example while(1) {}
Example code Give a code example that should work after the implementation of this feature.
Source: boa-dev/boa