(err, w, r)
| 31 | const kConstruct = Symbol('kConstruct'); |
| 32 | |
| 33 | function checkError(err, w, r) { |
| 34 | if (err) { |
| 35 | // Avoid V8 leak, https://github.com/nodejs/node/pull/34103#issuecomment-652002364 |
| 36 | err.stack; // eslint-disable-line no-unused-expressions |
| 37 | |
| 38 | if (w && !w.errored) { |
| 39 | w.errored = err; |
| 40 | } |
| 41 | if (r && !r.errored) { |
| 42 | r.errored = err; |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // Backwards compat. cb() is undocumented and unused in core but |
| 48 | // unfortunately might be used by modules. |