wasm-rquickjs-cli 0.5.3

Tool for wrapping JavaScript modules as WebAssembly components using the QuickJS engine
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Top-level setTimeout during module initialization — this previously caused
// a re-entrant block_on panic because get_js_state() was called before STATE
// was published.
let initTimerFired = false;

setTimeout(() => {
    initTimerFired = true;
}, 0);

setInterval(() => {}, 1000).unref();

export function run() {
    return `PASS: initTimerFired=${initTimerFired}`;
}