aboutsummaryrefslogtreecommitdiffstats
path: root/jsre
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-07-08 14:03:20 +0800
committerBas van Kervel <bas@ethdev.com>2015-07-08 14:03:20 +0800
commite84f3ec1d48f6a6c191e1f8a38d865fda3267a8a (patch)
tree394cd95dcd7940e9031184fdc201ab29a465ae3d /jsre
parenta2333bcbb46245e07357be1f9af4108e9bf1fe40 (diff)
downloadgo-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar.gz
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar.bz2
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar.lz
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar.xz
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.tar.zst
go-tangerine-e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a.zip
added net.version
Diffstat (limited to 'jsre')
-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;
}
}