Fix compressed check to avoid setting it to undefined

This commit is contained in:
Andreas Brekken 2014-01-11 13:55:53 +07:00
parent bf6254d3e2
commit 20aa4a0e8a

View file

@ -36,7 +36,7 @@ ECKey.prototype.import = function (input,compressed) {
: null
this.compressed =
arguments.length > 1 ? compressed
compressed !== undefined ? compressed
: input instanceof ECKey ? input.compressed
: input instanceof BigInteger ? false
: util.isArray(input) ? false