项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

19 line
422 B

  1. "use strict";
  2. var errorObject_1 = require('./errorObject');
  3. var tryCatchTarget;
  4. function tryCatcher() {
  5. try {
  6. return tryCatchTarget.apply(this, arguments);
  7. }
  8. catch (e) {
  9. errorObject_1.errorObject.e = e;
  10. return errorObject_1.errorObject;
  11. }
  12. }
  13. function tryCatch(fn) {
  14. tryCatchTarget = fn;
  15. return tryCatcher;
  16. }
  17. exports.tryCatch = tryCatch;
  18. ;
  19. //# sourceMappingURL=tryCatch.js.map