(fn, arg1, arg2, arg3)
| 23826 | } |
| 23827 | |
| 23828 | function nextTick(fn, arg1, arg2, arg3) { |
| 23829 | if (typeof fn !== 'function') { |
| 23830 | throw new TypeError('"callback" argument must be a function'); |
| 23831 | } |
| 23832 | var len = arguments.length; |
| 23833 | var args, i; |
| 23834 | switch (len) { |
| 23835 | case 0: |
| 23836 | case 1: |
| 23837 | return process.nextTick(fn); |
| 23838 | case 2: |
| 23839 | return process.nextTick(function afterTickOne() { |
| 23840 | fn.call(null, arg1); |
| 23841 | }); |
| 23842 | case 3: |
| 23843 | return process.nextTick(function afterTickTwo() { |
| 23844 | fn.call(null, arg1, arg2); |
| 23845 | }); |
| 23846 | case 4: |
| 23847 | return process.nextTick(function afterTickThree() { |
| 23848 | fn.call(null, arg1, arg2, arg3); |
| 23849 | }); |
| 23850 | default: |
| 23851 | args = new Array(len - 1); |
| 23852 | i = 0; |
| 23853 | while (i < args.length) { |
| 23854 | args[i++] = arguments[i]; |
| 23855 | } |
| 23856 | return process.nextTick(function afterTick() { |
| 23857 | fn.apply(null, args); |
| 23858 | }); |
| 23859 | } |
| 23860 | } |
| 23861 | |
| 23862 | }).call(this,require('_process')) |
| 23863 | },{"_process":138}],138:[function(require,module,exports){ |
no outgoing calls
no test coverage detected