GeezerVison is showing github.com — lib,test: update in preparation for linter update · nodejs/node@552e25c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: lib/buffer.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -263,6 +263,7 @@ function byteLength(string, encoding) { |
263 | 263 | case 'ascii': |
264 | 264 | case 'binary': |
265 | 265 | // Deprecated |
| 266 | + // eslint-disable-next-line no-fallthrough |
266 | 267 | case 'raw': |
267 | 268 | case 'raws': |
268 | 269 | return len; |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/readline.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -977,6 +977,7 @@ exports.emitKeypressEvents = emitKeypressEvents; |
977 | 977 | */ |
978 | 978 |
|
979 | 979 | // Regexes used for ansi escape code splitting |
| 980 | +// eslint-disable-next-line no-control-regex |
980 | 981 | const metaKeyCodeReAnywhere = /(?:\x1b)([a-zA-Z0-9])/; |
981 | 982 | const functionKeyCodeReAnywhere = new RegExp('(?:\x1b+)(O|N|\\[|\\[\\[)(?:' + [ |
982 | 983 | '(\\d+)(?:;(\\d+))?([~^$])', |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-http-destroyed-socket-write2.js +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -29,12 +29,17 @@ server.listen(common.PORT, function() { |
29 | 29 | switch (er.code) { |
30 | 30 | // This is the expected case |
31 | 31 | case 'ECONNRESET': |
32 | | - // On windows this sometimes manifests as ECONNABORTED |
| 32 | + break; |
| 33 | + |
| 34 | + // On Windows, this sometimes manifests as ECONNABORTED |
33 | 35 | case 'ECONNABORTED': |
| 36 | + break; |
| 37 | + |
34 | 38 | // This test is timing sensitive so an EPIPE is not out of the question. |
35 | 39 | // It should be infrequent, given the 50 ms timeout, but not impossible. |
36 | 40 | case 'EPIPE': |
37 | 41 | break; |
| 42 | + |
38 | 43 | default: |
39 | 44 | assert.strictEqual(er.code, |
40 | 45 | 'ECONNRESET', |
|