( condition: boolean, message: string, Err: any = Error )
| 129 | } |
| 130 | |
| 131 | export function invariant( |
| 132 | condition: boolean, |
| 133 | message: string, |
| 134 | Err: any = Error |
| 135 | ): asserts condition { |
| 136 | if (!condition) { |
| 137 | throw new Err(message) |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Native NumberFormat coerces non-primitive inputs via ToPrimitive (calling |
| 142 | // `toString()`) before feeding them to ToIntlMathematicalValue, so a |
no outgoing calls
no test coverage detected