diff options
Diffstat (limited to 'jsre/pp_js.go')
-rw-r--r-- | jsre/pp_js.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jsre/pp_js.go b/jsre/pp_js.go index d29e21cfa..723d74d5f 100644 --- a/jsre/pp_js.go +++ b/jsre/pp_js.go @@ -116,7 +116,7 @@ var isBigNumber = function (object) { var result = typeof BigNumber !== 'undefined' && object instanceof BigNumber; if (!result) { - if(typeof(object) === "object") { + if (typeof(object) === "object" && object.constructor != null) { result = object.constructor.toString().indexOf("function BigNumber(") == 0; } } |