add build
This commit is contained in:
12
node_modules/try-catch/lib/try-catch.js
generated
vendored
Normal file
12
node_modules/try-catch/lib/try-catch.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = function tryCatch(fn) {
|
||||
var args = [].slice.call(arguments, 1);
|
||||
|
||||
try {
|
||||
return [null, fn.apply(null, args)];
|
||||
} catch(e) {
|
||||
return [e];
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user