diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-10 00:06:39 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-10 00:06:39 +0800 |
commit | 98f4c936f25de27dbc90f36f2c1ffd1f23b114e9 (patch) | |
tree | 07f8b038c7421e1a9af0fd54e7b78e0002c4591e /jsre/pp_js.go | |
parent | 423c2f499c2350ae54d02a3151686ebd39fc8c94 (diff) | |
parent | 344277d026001d8e114ebfad92f1c385dcd3d3da (diff) | |
download | dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar.gz dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar.bz2 dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar.lz dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar.xz dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.tar.zst dexon-98f4c936f25de27dbc90f36f2c1ffd1f23b114e9.zip |
Merge branch 'release/0.9.38'
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; } } |