Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
584 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var errorObject_1 = require("./errorObject");
|
---|
4 | var tryCatchTarget;
|
---|
5 | function tryCatcher() {
|
---|
6 | errorObject_1.errorObject.e = undefined;
|
---|
7 | try {
|
---|
8 | return tryCatchTarget.apply(this, arguments);
|
---|
9 | }
|
---|
10 | catch (e) {
|
---|
11 | errorObject_1.errorObject.e = e;
|
---|
12 | return errorObject_1.errorObject;
|
---|
13 | }
|
---|
14 | finally {
|
---|
15 | tryCatchTarget = undefined;
|
---|
16 | }
|
---|
17 | }
|
---|
18 | function tryCatch(fn) {
|
---|
19 | tryCatchTarget = fn;
|
---|
20 | return tryCatcher;
|
---|
21 | }
|
---|
22 | exports.tryCatch = tryCatch;
|
---|
23 | //# sourceMappingURL=tryCatch.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.