| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,6 +29,14 @@ module.exports = { | |||
| 29 | 29 | validateTimerDuration | |
| 30 | 30 | }; | |
| 31 | 31 | ||
| 32 | + var timers; | ||
| 33 | + function getTimers() { | ||
| 34 | + if (timers === undefined) { | ||
| 35 | + timers = require('timers'); | ||
| 36 | + } | ||
| 37 | + return timers; | ||
| 38 | + } | ||
| 39 | + | ||
| 32 | 40 | // Timer constructor function. | |
| 33 | 41 | // The entire prototype is defined in lib/timers.js | |
| 34 | 42 | function Timeout(callback, after, args, isRepeat) { | |
@@ -66,13 +74,6 @@ function Timeout(callback, after, args, isRepeat) { | |||
| 66 | 74 | } | |
| 67 | 75 | } | |
| 68 | 76 | ||
| 69 | - var timers; | ||
| 70 | - function getTimers() { | ||
| 71 | - if (timers === undefined) { | ||
| 72 | - timers = require('timers'); | ||
| 73 | - } | ||
| 74 | - return timers; | ||
| 75 | - } | ||
| 76 | 77 | ||
| 77 | 78 | function setUnrefTimeout(callback, after, arg1, arg2, arg3) { | |
| 78 | 79 | // Type checking identical to setTimeout() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments