From d6f4c515f5a1fa8818bb82beff24f179a9162b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 9 Jun 2015 17:23:44 +0300 Subject: [PATCH] jsre: print function arguments too --- jsre/pp_js.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsre/pp_js.go b/jsre/pp_js.go index e5e52b1a24..20821e4a1b 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; }