| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,6 +137,9 @@ function Socket(options) { | |||
| 137 | 137 | } else if (options.fd !== undefined) { | |
| 138 | 138 | this._handle = createHandle(options.fd); | |
| 139 | 139 | this._handle.open(options.fd); | |
| 140 | + // options.fd can be string (since it user-defined), | ||
| 141 | + // so changing this to === would be semver-major | ||
| 142 | + // See: https://github.com/nodejs/node/pull/11513 | ||
| 140 | 143 | if ((options.fd == 1 || options.fd == 2) && | |
| 141 | 144 | (this._handle instanceof Pipe) && | |
| 142 | 145 | process.platform === 'win32') { | |
@@ -1057,7 +1060,7 @@ function afterConnect(status, handle, req, readable, writable) { | |||
| 1057 | 1060 | self._connecting = false; | |
| 1058 | 1061 | self._sockname = null; | |
| 1059 | 1062 | ||
| 1060 | - if (status == 0) { | ||
| 1063 | + if (status === 0) { | ||
| 1061 | 1064 | self.readable = readable; | |
| 1062 | 1065 | self.writable = writable; | |
| 1063 | 1066 | self._unrefTimer(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments