Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! buffer,error: improve bigint, big numbers and more
  • Loading branch information
BridgeAR committed Apr 26, 2019
commit 19aebdc67f3af4e42d13ca4d3a2523554f0ee82a
2 changes: 1 addition & 1 deletion lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function addNumericalSeparator(val) {
if (val[i] === '.') {
return val;
}
if (count % 3 === 0 && i !== val.length && val[i] !== '-') {
if (count % 3 === 0 && val[i] !== '-') {
res = `_${res}`;
}
res = `${val[i]}${res}`;
Expand Down