From e84f3ec1d48f6a6c191e1f8a38d865fda3267a8a Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Wed, 8 Jul 2015 08:03:20 +0200 Subject: added net.version --- jsre/pp_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jsre/pp_js.go') 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; } } -- cgit v1.2.3