MCPcopy
hub / github.com/webpack/webpack / set

Method set

lib/util/StackedMap.js:68–70  ·  lib/util/StackedMap.js::StackedMap.set

* Stores a value in the current layer, preserving explicit `undefined` * values with an internal marker. * @param {K} item the key of the element to add * @param {V} value the value of the element to add * @returns {void}

(item, value)

Source from the content-addressed store, hash-verified

66 * @returns {void}
67 */
68 set(item, value) {
69 this.map.set(item, value === undefined ? UNDEFINED_MARKER : value);
70 }
71
72 /**
73 * Deletes a key from the current view, either by removing it outright in the

Callers 15

applyMethod · 0.45
handlerMethod · 0.45
addValueDependencyMethod · 0.45
addToMapMethod · 0.45
getConnectionsByKeyFunction · 0.45
_getModuleGraphModuleMethod · 0.45
setResolvedModuleMethod · 0.45
updateModuleMethod · 0.45
updateParentMethod · 0.45
removeConnectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected