MCPcopy
hub / github.com/webpack/webpack / getOrCreateUriMap

Function getOrCreateUriMap

test/BenchmarkTestCases.benchmark.mjs:501–509  ·  view source on GitHub ↗

* @param {Bench} bench bench * @returns {URIMap} URI map

(bench)

Source from the content-addressed store, hash-verified

499 * @returns {URIMap} URI map
500 */
501function getOrCreateUriMap(bench) {
502 let uriMap = taskUriMap.get(bench);
503 if (!uriMap) {
504 /** @type {URIMap} */
505 uriMap = new Map();
506 taskUriMap.set(bench, uriMap);
507 }
508 return uriMap;
509}
510
511/**
512 * @param {Bench} bench bench

Callers 1

withCodSpeedFunction · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected