Skip to content

Commit d6f4c51

Browse files
committed
jsre: print function arguments too
1 parent 7842559 commit d6f4c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsre/pp_js.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function pp(object, indent) {
4949
} else if(typeof(object) === "number") {
5050
str += "\033[31m" + object;
5151
} else if(typeof(object) === "function") {
52-
str += "\033[35m[Function]";
52+
str += "\033[35m" + object.toString().split(" {")[0];
5353
} else {
5454
str += object;
5555
}

0 commit comments

Comments
 (0)