(shouldBeString, opt_message)
| 106 | * @throws {Error} when shouldBeString is not an String |
| 107 | */ |
| 108 | export function devAssertString(shouldBeString, opt_message) { |
| 109 | if (mode.isMinified()) { |
| 110 | return /** @type {void} */ (shouldBeString); |
| 111 | } |
| 112 | devAssertDceCheck(); |
| 113 | |
| 114 | return assertions.assertString( |
| 115 | /** @type {import('./base').AssertionFunctionDef} */ (devAssert), |
| 116 | shouldBeString, |
| 117 | opt_message |
| 118 | ); |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Throws an error if the first argument isn't a number. The allowed values |
no test coverage detected