| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,6 +143,9 @@ function Socket(options) { | |||
| 143 | 143 | } else if (options.fd !== undefined) { | |
| 144 | 144 | this._handle = createHandle(options.fd); | |
| 145 | 145 | this._handle.open(options.fd); | |
| 146 | + // options.fd can be string (since it user-defined), | ||
| 147 | + // so changing this to === would be semver-major | ||
| 148 | + // See: https://github.com/nodejs/node/pull/11513 | ||
| 146 | 149 | if ((options.fd == 1 || options.fd == 2) && | |
| 147 | 150 | (this._handle instanceof Pipe) && | |
| 148 | 151 | process.platform === 'win32') { | |
@@ -1066,7 +1069,7 @@ function afterConnect(status, handle, req, readable, writable) { | |||
| 1066 | 1069 | self.connecting = false; | |
| 1067 | 1070 | self._sockname = null; | |
| 1068 | 1071 | ||
| 1069 | - if (status == 0) { | ||
| 1072 | + if (status === 0) { | ||
| 1070 | 1073 | self.readable = readable; | |
| 1071 | 1074 | self.writable = writable; | |
| 1072 | 1075 | self._unrefTimer(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments