(shouldBeNumber, opt_message)
| 130 | * @throws {Error} when shouldBeNumber is not an Number |
| 131 | */ |
| 132 | export function devAssertNumber(shouldBeNumber, opt_message) { |
| 133 | if (mode.isMinified()) { |
| 134 | return /** @type {void} */ (shouldBeNumber); |
| 135 | } |
| 136 | devAssertDceCheck(); |
| 137 | |
| 138 | return assertions.assertNumber( |
| 139 | /** @type {import('./base').AssertionFunctionDef} */ (devAssert), |
| 140 | shouldBeNumber, |
| 141 | opt_message |
| 142 | ); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Throws an error if the first argument is not an array. |
no test coverage detected