quenktechnologies / noni

Quenk Technologies commons library.
Other
0 stars 0 forks source link

Bug: Returning a Raise from Future#trap causes infinte recurrsion. #108

Closed metasansana closed 1 year ago

metasansana commented 1 year ago

Example:

const error = msg => raise(new Error(msg));

const main =  error('fail').trap(e => error(`Failed: ${e.message}`);

main();

The above hangs because the Trap message is not removed from the queue and is always there ready to handle the next error.