(name)
| 1059 | }; |
| 1060 | |
| 1061 | function _console_fn(name) { |
| 1062 | return _restParam(function (fn, args) { |
| 1063 | fn.apply(null, args.concat([_restParam(function (err, args) { |
| 1064 | if (typeof console === 'object') { |
| 1065 | if (err) { |
| 1066 | if (console.error) { |
| 1067 | console.error(err); |
| 1068 | } |
| 1069 | } |
| 1070 | else if (console[name]) { |
| 1071 | _arrayEach(args, function (x) { |
| 1072 | console[name](x); |
| 1073 | }); |
| 1074 | } |
| 1075 | } |
| 1076 | })])); |
| 1077 | }); |
| 1078 | } |
| 1079 | async.log = _console_fn('log'); |
| 1080 | async.dir = _console_fn('dir'); |
| 1081 | /*async.info = _console_fn('info'); |
no test coverage detected