(f: () => Schema.Json)
| 1969 | const failed: Schema.Json = { "~unserialisable": "encode" } |
| 1970 | /** Reading a value can throw, from a getter. The log gets a placeholder for it instead. */ |
| 1971 | const guarded = (f: () => Schema.Json): Schema.Json => { |
| 1972 | try { |
| 1973 | return f() |
| 1974 | } catch { |
| 1975 | return failed |
| 1976 | } |
| 1977 | } |
| 1978 | |
| 1979 | interface Walk { |
| 1980 | readonly path: Set<object> |
no test coverage detected