更新
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
var noop = require('./noop');
|
||||
exports = function(fn, cb) {
|
||||
cb = cb || noop;
|
||||
try {
|
||||
cb(null, fn());
|
||||
} catch (e) {
|
||||
cb(e);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user