Skip to main content

INTERRUPT_POLL_INTERVAL

Constant INTERRUPT_POLL_INTERVAL 

Source
pub const INTERRUPT_POLL_INTERVAL: u32 = 10_000;
Expand description

How many instructions run between polls of Interp::interrupt.

The reference’s JS_INTERRUPT_COUNTER_INIT, so a handler that counts polls sees the same order of magnitude on both implementations — which is what lets a C driver compare its output byte for byte (see scripts/m15-capi.sh --embed).