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

Method set

lib/diagnostics_channel.js:48–51  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

46 });
47
48 set(key, value) {
49 this.#finalizers.register(value, key);
50 return super.set(key, new WeakReference(value));
51 }
52
53 get(key) {
54 return super.get(key)?.get();

Callers 2

bindStoreMethod · 0.45
constructorMethod · 0.45

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected