aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/pp_js.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-09 22:22:20 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-09 22:22:20 +0800
commit06afabb63105cab5ab2360d6a84cbe398b25d8ca (patch)
tree61d99eec54fca096030dfe05922488000883f4b0 /jsre/pp_js.go
parent505b77a0d5f12f3a24aea9218d14bb3649cc6644 (diff)
parente84f3ec1d48f6a6c191e1f8a38d865fda3267a8a (diff)
downloadgo-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar.gz
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar.bz2
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar.lz
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar.xz
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.tar.zst
go-tangerine-06afabb63105cab5ab2360d6a84cbe398b25d8ca.zip
Merge pull request #1436 from bas-vk/net_version
added net.version
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;
}
}