MCPcopy
hub / github.com/webpack/webpack / has

Method has

lib/util/runtime.js:496–507  ·  view source on GitHub ↗

* Returns true, when the runtime is stored. * @param {RuntimeSpec} runtime the runtimes * @returns {boolean} true, when the runtime is stored

(runtime)

Source from the content-addressed store, hash-verified

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.

Callers 4

mergeRuntimeFunction · 0.45
intersectRuntimeFunction · 0.45
subtractRuntimeFunction · 0.45
hasMethod · 0.45

Calls 2

runtimeEqualFunction · 0.85
getRuntimeKeyFunction · 0.85

Tested by

no test coverage detected