Skip to content

Commit

Permalink
Support Node.js v21 (#1834)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Oct 23, 2023
1 parent 3526e0a commit 3dd1d4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
fail-fast: false
matrix:
os: [macOS-latest, windows-latest, ubuntu-latest]
node-version: [14, 16, 18, 19, 20]
node-version: [14, 16, 18, 19, 20, 21]
exclude:
- os: windows-latest
node-version: 14
Expand Down
2 changes: 1 addition & 1 deletion lib/proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function flush (cb) {

const stream = this[streamSym]

if ('flush' in stream) {
if (typeof stream.flush === 'function') {
stream.flush(cb || noop)
} else if (cb) cb()
}

0 comments on commit 3dd1d4d

Please sign in to comment.