nodejs-mozilla/test/parallel/test-timers-timeout-with-no...

16 lines
292 B
JavaScript

'use strict';
const common = require('../common');
/**
* This test is for https://github.com/nodejs/node/issues/24203
*/
let count = 50;
const time = 1.00000000000001;
const exec = common.mustCall(() => {
if (--count === 0) {
return;
}
setTimeout(exec, time);
}, count);
exec();