(operation: () => T)
| 493 | } |
| 494 | |
| 495 | function decodeDomain<T>(operation: () => T): T { |
| 496 | try { |
| 497 | return operation(); |
| 498 | } catch (error) { |
| 499 | if (error instanceof RuntimePolicyDomainDecodeError) { |
| 500 | throw invalidProtocolFrame(error.message); |
| 501 | } |
| 502 | throw error; |
| 503 | } |
| 504 | } |
no test coverage detected