Skip to content

Commit

Permalink
fix: deal with c8 Node.js v12 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Mar 4, 2022
1 parent 99cd346 commit 8f83849
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ async function readV2Header (reader) {
}
reader.seek(V2_HEADER_LENGTH)
return header
/* c8 ignore next 2 */
// Node.js 12 c8 bug
}

/**
Expand Down Expand Up @@ -205,6 +207,8 @@ export function createDecoder (reader) {
reader = limitReader(reader, header.dataSize - v1length)
}
return header
/* c8 ignore next 2 */
// Node.js 12 c8 bug
})()

return {
Expand Down

0 comments on commit 8f83849

Please sign in to comment.