later
later copied to clipboard
certain cron expressions can cause endless loop
later.parse.cron('*/-2 * * * *');
I realize this is an invalid cron expression. But an endless loop is not ideal.
Did you happen to catch where the problem was?
Seems to be the while loop in add(sched, name, min, max, inc), called by addRange, parse, parseExpr. https://github.com/bunkat/later/blob/master/src/parse/cron.js#L103