aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts')
-rw-r--r--tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts b/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts
index 5e5f2b438b..1745421912 100644
--- a/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts
+++ b/tools/node_modules/eslint/node_modules/rxjs/src/internal/util/tryCatch.ts
@@ -3,11 +3,14 @@ import { errorObject } from './errorObject';
let tryCatchTarget: Function;
function tryCatcher(this: any): any {
+ errorObject.e = undefined;
try {
return tryCatchTarget.apply(this, arguments);
} catch (e) {
errorObject.e = e;
return errorObject;
+ } finally {
+ tryCatchTarget = undefined;
}
}