aboutsummaryrefslogtreecommitdiffstats
path: root/jsre
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-09 22:23:44 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-09 22:23:44 +0800
commitd6f4c515f5a1fa8818bb82beff24f179a9162b0b (patch)
tree66211289d8da72c9ebf246f2b1a81ef33dc875dc /jsre
parent78425593535ce07acf2a9d6c0e87f4e84cce137f (diff)
downloadgo-tangerine-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.gz
go-tangerine-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.zst
go-tangerine-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.zip
jsre: print function arguments too
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 e5e52b1a2..20821e4a1 100644
--- a/jsre/pp_js.go
+++ b/jsre/pp_js.go
@@ -49,7 +49,7 @@ function pp(object, indent) {
} else if(typeof(object) === "number") {
str += "\033[31m" + object;
} else if(typeof(object) === "function") {
- str += "\033[35m[Function]";
+ str += "\033[35m" + object.toString().split(" {")[0];
} else {
str += object;
}