ubdate
This commit is contained in:
10
node_modules/timers-ext/valid-timeout.js
generated
vendored
Normal file
10
node_modules/timers-ext/valid-timeout.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var toPosInt = require("es5-ext/number/to-pos-integer")
|
||||
, maxTimeout = require("./max-timeout");
|
||||
|
||||
module.exports = function (value) {
|
||||
value = toPosInt(value);
|
||||
if (value > maxTimeout) throw new TypeError(value + " exceeds maximum possible timeout");
|
||||
return value;
|
||||
};
|
||||
Reference in New Issue
Block a user