aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js')
-rw-r--r--tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js b/tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js
index 6dff23eddd..42f2191f6d 100644
--- a/tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js
+++ b/tools/node_modules/eslint/node_modules/rxjs/internal/util/tryCatch.js
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
var errorObject_1 = require("./errorObject");
var tryCatchTarget;
function tryCatcher() {
+ errorObject_1.errorObject.e = undefined;
try {
return tryCatchTarget.apply(this, arguments);
}
@@ -10,6 +11,9 @@ function tryCatcher() {
errorObject_1.errorObject.e = e;
return errorObject_1.errorObject;
}
+ finally {
+ tryCatchTarget = undefined;
+ }
}
function tryCatch(fn) {
tryCatchTarget = fn;