-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I would expect the following program to run for roughly 3 seconds, then print out Pausing..., followed shortly by PAUSED!. But instead it prints out Pausing..., but never actually pauses:
const prog = `
for(let i = 0; i < 100000000000; i++) {
if(i%10000000 === 0) {
console.log(i);
}
}
`;
window.stopify = require('@stopify/stopify');
let runner = stopify.stopifyLocally(prog);
runner.g = {console};
runner.run(() => {
console.log("DONE!");
});
setTimeout(() => {
console.log("Pausing...");
runner.pauseImmediate(() => {console.log("PAUSED");});
}, 3000);
If it helps, the following error seems to occur:
lazyRuntime.ts:15 Uncaught Capture {stack: Array(0), f: ƒ}
Metadata
Metadata
Assignees
Labels
No labels