aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/pp_js.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-10 00:06:39 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-10 00:06:39 +0800
commit98f4c936f25de27dbc90f36f2c1ffd1f23b114e9 (patch)
tree07f8b038c7421e1a9af0fd54e7b78e0002c4591e /jsre/pp_js.go
parent423c2f499c2350ae54d02a3151686ebd39fc8c94 (diff)
parent344277d026001d8e114ebfad92f1c385dcd3d3da (diff)
downloaddexon-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.go2
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;
}
}