This commit is contained in:
Jordi Baylina
2020-03-28 21:26:43 +01:00
parent fcef4f5f32
commit 80cce0ccbb
5 changed files with 23 additions and 19 deletions

View File

@@ -77,7 +77,7 @@ function fnvHash(str) {
function stringifyBigInts(o) {
if ((typeof(o) == "bigint") || o.isZero !== undefined) {
if ((typeof(o) == "bigint") || o.eq !== undefined) {
return o.toString(10);
} else if (Array.isArray(o)) {
return o.map(stringifyBigInts);