* Throws an EthersError with %%message%%, %%code%% and additional error * %%info%% when %%check%% is falsish.. * * @see [[api:makeError]]
(check, message, code, info)
| 153 | * @see [[api:makeError]] |
| 154 | */ |
| 155 | function assert(check, message, code, info) { |
| 156 | if (!check) { |
| 157 | throw makeError(message, code, info); |
| 158 | } |
| 159 | } |
| 160 | exports.assert = assert; |
| 161 | /** |
| 162 | * A simple helper to simply ensuring provided arguments match expected |
no test coverage detected