diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-09 22:23:44 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-09 22:23:44 +0800 |
commit | d6f4c515f5a1fa8818bb82beff24f179a9162b0b (patch) | |
tree | 66211289d8da72c9ebf246f2b1a81ef33dc875dc | |
parent | 78425593535ce07acf2a9d6c0e87f4e84cce137f (diff) | |
download | dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.gz dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.bz2 dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.lz dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.xz dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.tar.zst dexon-d6f4c515f5a1fa8818bb82beff24f179a9162b0b.zip |
jsre: print function arguments too
-rw-r--r-- | jsre/pp_js.go | 2 |
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; } |