peterolson / BigInteger.js

An arbitrary length integer library for Javascript
The Unlicense
1.12k stars 187 forks source link

Shifting with BigInteger instance as argument #163

Closed blake-regalia closed 5 years ago

blake-regalia commented 5 years ago

Cannot shift when the argument is a BigInteger:

big_integer.one.shiftLeft(big_integer.one)
Error: 1 is too large for shifting.
    at NativeBigInt.BigInteger.shiftLeft (.../node_modules/big-integer/BigInteger.js:995:19)
peterolson commented 5 years ago

Good catch, thanks! This should be fixed now.