GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — net: use strict comparisons for fd · nodejs/node@f6e07fd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • net.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/net.js‎

Copy file name to clipboardExpand all lines: lib/net.js
+2-5Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,8 @@ function Socket(options) {
275275
throw errnoException(err, 'open');
276276

277277
this[async_id_symbol] = this._handle.getAsyncId();
278-
// options.fd can be string (since it is user-defined),
279-
// so changing this to === would be semver-major
280-
// See: https://github.com/nodejs/node/pull/11513
281-
// eslint-disable-next-line eqeqeq
282-
if ((fd == 1 || fd == 2) &&
278+
279+
if ((fd === 1 || fd === 2) &&
283280
(this._handle instanceof Pipe) &&
284281
process.platform === 'win32') {
285282
// Make stdout and stderr blocking on Windows

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.