(shouldBeBoolean, opt_message)
| 177 | * @throws {Error} when shouldBeBoolean is not an Boolean |
| 178 | */ |
| 179 | export function devAssertBoolean(shouldBeBoolean, opt_message) { |
| 180 | if (mode.isMinified()) { |
| 181 | return /** @type {void} */ (shouldBeBoolean); |
| 182 | } |
| 183 | devAssertDceCheck(); |
| 184 | |
| 185 | return assertions.assertBoolean( |
| 186 | /** @type {import('./base').AssertionFunctionDef} */ (devAssert), |
| 187 | shouldBeBoolean, |
| 188 | opt_message |
| 189 | ); |
| 190 | } |
nothing calls this directly
no test coverage detected