valid-timeout.js 200 B

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