Commit 6ea28f93 authored by Bas van Kervel's avatar Bas van Kervel Committed by Jeffrey Wilcke

output BigNumbers objects in console as strings

parent 1208ac83
......@@ -97,7 +97,15 @@ var isMemberFunction = function(object, member) {
}
var isBigNumber = function (object) {
return typeof BigNumber !== 'undefined' && object instanceof BigNumber;
var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber;
if (!result) {
if(typeof(object) === "object") {
result = object.constructor.toString().indexOf("function BigNumber(") == 0;
}
}
return result
};
function prettyPrint(/* */) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment