Debian Codegraph @

timers-ext/test/valid-timeout.js

raw
1 "use strict";
2
3 module.exports = function (t, a) {
4 a(t(NaN), 0, "NaN");
5 a(t(-343), 0, "Negative");
6 a(t(232342), 232342, "Positive");
7 a.throws(function () { t(1e23); }, TypeError, "Too large");
8 };