* Returns true, when the runtime is stored. * @param {RuntimeSpec} runtime the runtimes * @returns {boolean} true, when the runtime is stored
(runtime)
| 494 | * @returns {boolean} true, when the runtime is stored |
| 495 | */ |
| 496 | has(runtime) { |
| 497 | switch (this._mode) { |
| 498 | case 0: |
| 499 | return false; |
| 500 | case 1: |
| 501 | return runtimeEqual(this._singleRuntime, runtime); |
| 502 | default: |
| 503 | return /** @type {RuntimeSpecMapInnerMap<R>} */ (this._map).has( |
| 504 | getRuntimeKey(runtime) |
| 505 | ); |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | /** |
| 510 | * Updates default using the provided runtime. |
no test coverage detected