( self: Cause.Cause<E> )
| 273 | |
| 274 | /** @internal */ |
| 275 | export const causeAnnotations = <E>( |
| 276 | self: Cause.Cause<E> |
| 277 | ): Context.Context<never> => { |
| 278 | const map = new Map<string, unknown>() |
| 279 | for (const f of self.reasons) { |
| 280 | if (f.annotations.size > 0) { |
| 281 | for (const [key, value] of f.annotations) { |
| 282 | map.set(key, value) |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | return Context.makeUnsafe(map) |
| 287 | } |
| 288 | |
| 289 | /** @internal */ |
| 290 | export const causeMap: { |