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

Method watchChildProcessModules

lib/internal/watch_mode/files_watcher.js:174–191  ·  view source on GitHub ↗
(child, key = null)

Source from the content-addressed store, hash-verified

172 }
173
174 watchChildProcessModules(child, key = null) {
175 if (this.#passthroughIPC) {
176 this.#setupIPC(child);
177 }
178
179 child.on('message', (message) => {
180 try {
181 if (ArrayIsArray(message['watch:require'])) {
182 ArrayPrototypeForEach(message['watch:require'], (file) => this.filterFile(file, key));
183 }
184 if (ArrayIsArray(message['watch:import'])) {
185 ArrayPrototypeForEach(message['watch:import'], (file) => this.filterFile(fileURLToPath(file), key));
186 }
187 } catch {
188 // Failed watching file. ignore
189 }
190 });
191 }
192 unfilterFilesOwnedBy(owners) {
193 owners.forEach((owner) => {
194 this.#ownerDependencies.get(owner)?.forEach((dependency) => {

Callers 3

runTestFileFunction · 0.80
startFunction · 0.80

Calls 4

#setupIPCMethod · 0.95
filterFileMethod · 0.95
fileURLToPathFunction · 0.85
onMethod · 0.45

Tested by

no test coverage detected