Sha256: cfe6a752ba55f6d990c190bfbcee378f90187dd7a38f7b5e548c54329fb266e0
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
'use strict'; // Test for bug where a timer duration greater than 0 ms but less than 1 ms // resulted in the duration being set for 1000 ms. The expected behavior is // that the timeout would be set for 1 ms, and thus fire more-or-less // immediately. // // Ref: https://github.com/nodejs/node-v0.x-archive/pull/897 const common = require('../common'); const assert = require('assert'); const t = Date.now(); setTimeout(common.mustCall(function() { const diff = Date.now() - t; assert.ok(diff < 100, `timer fired after ${diff} ms`); }), 0.1);
Version data entries
3 entries across 3 versions & 1 rubygems