(a, b)
| 179 | * @returns {-1 | 0 | 1} compare |
| 180 | */ |
| 181 | const compareRuntime = (a, b) => { |
| 182 | if (a === b) { |
| 183 | return 0; |
| 184 | } else if (a === undefined) { |
| 185 | return -1; |
| 186 | } else if (b === undefined) { |
| 187 | return 1; |
| 188 | } |
| 189 | const aKey = getRuntimeKey(a); |
| 190 | const bKey = getRuntimeKey(b); |
| 191 | if (aKey < bKey) return -1; |
| 192 | if (aKey > bKey) return 1; |
| 193 | return 0; |
| 194 | }; |
| 195 | |
| 196 | /** |
| 197 | * Merges the provided values into a single result. |
nothing calls this directly
no test coverage detected