(cond, msg)
| 21 | const INVALID_ARG_ERROR_RE = /INVALID_ARGUMENT|InvalidArg|ZR_ERR_INVALID_ARGUMENT/i; |
| 22 | |
| 23 | function assert(cond, msg) { |
| 24 | if (!cond) throw new Error(msg); |
| 25 | } |
| 26 | |
| 27 | function assertThrows(fn, pattern, msg) { |
| 28 | let threw = false; |
no outgoing calls
no test coverage detected