Buckets:
| import { config } from '../config'; | |
| let context = null; | |
| export function errorContext(cb) { | |
| if (config.useDeprecatedSynchronousErrorHandling) { | |
| const isRoot = !context; | |
| if (isRoot) { | |
| context = { errorThrown: false, error: null }; | |
| } | |
| cb(); | |
| if (isRoot) { | |
| const { errorThrown, error } = context; | |
| context = null; | |
| if (errorThrown) { | |
| throw error; | |
| } | |
| } | |
| } | |
| else { | |
| cb(); | |
| } | |
| } | |
| export function captureError(err) { | |
| if (config.useDeprecatedSynchronousErrorHandling && context) { | |
| context.errorThrown = true; | |
| context.error = err; | |
| } | |
| } | |
| //# sourceMappingURL=errorContext.js.map |
Xet Storage Details
- Size:
- 726 Bytes
- Xet hash:
- 794d1368edd622550630a116fc4c31d20143b355ad10ec041d5b72c26ac89287
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.