()
| 332 | } |
| 333 | |
| 334 | function setupWarningHandler() { |
| 335 | const { |
| 336 | onWarning, |
| 337 | resetForSerialization, |
| 338 | } = require('internal/process/warning'); |
| 339 | if (getOptionValue('--warnings') && |
| 340 | process.env.NODE_NO_WARNINGS !== '1') { |
| 341 | process.on('warning', onWarning); |
| 342 | |
| 343 | // The code above would add the listener back during deserialization, |
| 344 | // if applicable. |
| 345 | if (isBuildingSnapshot()) { |
| 346 | addSerializeCallback(() => { |
| 347 | process.removeListener('warning', onWarning); |
| 348 | resetForSerialization(); |
| 349 | }); |
| 350 | } |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | // https://websockets.spec.whatwg.org/ |
| 355 | function setupWebsocket() { |
no test coverage detected
searching dependent graphs…