We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73c9492 commit b6d6a6dCopy full SHA for b6d6a6d
_benchmark/index.js
@@ -240,7 +240,7 @@ const fns = {
240
from10: s => SilentMattBigInteger.parse(s, 10),
241
from16: s => SilentMattBigInteger.parse(s, 16),
242
to10: x => x.toString(10),
243
- to16: x => x.toString(16),
+ to16: x => x.toString(16).toLowerCase(),
244
add: (a,b) => a.add(b),
245
sub: (a,b) => a.subtract(b),
246
mul: (a,b) => a.multiply(b),
@@ -420,7 +420,7 @@ for ( let i = 0; i < NFIXTURES; ++i ) {
420
results[i][key] = results[i][key] || {} ;
421
422
const result = fixture.outs[key] ;
423
- const str = result instanceof String ? result : fn.to16(result).toLowerCase() ;
+ const str = result.constructor.prototype === String.prototype ? result : fn.to16(result).toLowerCase() ;
424
results[i][key][name] = str;
425
}) ;
426
} ) ;
0 commit comments