remove large or negative number vulnerability

This commit is contained in:
louisbuchbinder
2017-07-09 09:14:58 -07:00
parent 786abf351e
commit 280b2a7461
3 changed files with 8 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ describe('Base58', function () {
assert.throws(function () {
base58.encode('hi');
}, function (err) {
return err.message === 'Value passed is not an integer.';
return err.message === 'Value passed is not a non-negative safe integer.';
});
});
});
@@ -59,7 +59,7 @@ describe('Base58', function () {
assert.throws(function () {
base58.encode(3.14);
}, function (err) {
return err.message === 'Value passed is not an integer.';
return err.message === 'Value passed is not a non-negative safe integer.';
});
});
});