Browse Source

fixed printing bignumbers

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
6e6c6a82a4
  1. 3
      libjsengine/PrettyPrint.js

3
libjsengine/PrettyPrint.js

@ -76,7 +76,8 @@ var prettyPrint = (function () {
});
};
var isBigNumber = function (object) {
return typeof BigNumber !== 'undefined' && object instanceof BigNumber;
return (!!object.constructor && object.constructor.name === 'BigNumber') ||
(typeof BigNumber !== 'undefined' && object instanceof BigNumber)
};
function prettyPrintInner(/* */) {
var args = arguments;

Loading…
Cancel
Save