Diff

Differences From Artifact [393672b6c1]:

To Artifact [0d0e90bbfd]:


    89     89   			while (bigInt) {
    90     90   				result.push(bigInt & 0xff);
    91     91   				bigInt = bigInt >> 8;
    92     92   			}
    93     93   			result.reverse();
    94     94   			break;
    95     95   		case "object":
    96         -			result = Array.from(new Uint8Array(bigInt.toByteArray()));
           96  +			if (bigInt.toByteArray) {
           97  +				result = Array.from(new Uint8Array(bigInt.toByteArray()));
           98  +			} else {
           99  +				result = Array.from(bigInt);
          100  +			}
    97    101   			break;
    98    102   	}
    99    103   
   100    104   	result = cackeySSHAgentEncodeLV(result);
   101    105   
   102    106   	return(result);
   103    107   }