Skip to content

Commit

Permalink
Remove duplicate word.
Browse files Browse the repository at this point in the history
  • Loading branch information
justfalter committed May 30, 2019
1 parent c80341a commit 9a44de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/large-numbers.js
Expand Up @@ -55,7 +55,7 @@ const parse = exports.parse = (buf) => {
if (!Number.isSafeInteger(value))
// The number is so large that javascript cannot represent it with integer
// precision.
throw TypeError('parsed number outside of javascript javascript safe integer range')
throw TypeError('parsed number outside of javascript safe integer range')

return value
}
Expand Down
2 changes: 1 addition & 1 deletion test/large-numbers.js
Expand Up @@ -33,7 +33,7 @@ t.test('parse out of range', t => {
t.plan(cases.length)
cases.forEach((hex) =>
t.throws(_ => parse(Buffer.from(hex, 'hex')),
TypeError('parsed number outside of javascript javascript safe integer range')))
TypeError('parsed number outside of javascript safe integer range')))
})

t.test('parse invalid base256 encoding', t => {
Expand Down

0 comments on commit 9a44de7

Please sign in to comment.