Skip to content

Commit 0544410

Browse files
cactysmantargos
authored andcommitted
buffer,errors: add missing n literal in range error string
PR-URL: #37750 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Pooja D P <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 885ed96 commit 0544410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/buffer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function checkInt(value, min, max, buf, offset, byteLength) {
6060
if (min === 0 || min === 0n) {
6161
range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`;
6262
} else {
63-
range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +
64-
`${(byteLength + 1) * 8 - 1}${n}`;
63+
range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and ` +
64+
`< 2${n} ** ${(byteLength + 1) * 8 - 1}${n}`;
6565
}
6666
} else {
6767
range = `>= ${min}${n} and <= ${max}${n}`;

0 commit comments

Comments
 (0)