MCPcopy Index your code
hub / github.com/nodejs/node / setItem

Method setItem

lib/internal/inspector/webstorage.js:9–19  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

7
8class InspectorLocalStorage extends Storage {
9 setItem(key, value) {
10 key = `${key}`;
11 value = `${value}`;
12 const oldValue = this.getItem(key);
13 super.setItem(key, value);
14 if (oldValue == null) {
15 itemAdded(key, value, true);
16 } else {
17 itemUpdated(key, oldValue, value, true);
18 }
19 }
20
21 removeItem(key) {
22 key = `${key}`;

Callers

nothing calls this directly

Calls 3

itemAddedFunction · 0.85
itemUpdatedFunction · 0.85
setItemMethod · 0.45

Tested by

no test coverage detected