good morning!!!!

Skip to content
Snippets Groups Projects
Commit d6f4c515 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

jsre: print function arguments too

parent 78425593
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ function pp(object, indent) { ...@@ -49,7 +49,7 @@ function pp(object, indent) {
} else if(typeof(object) === "number") { } else if(typeof(object) === "number") {
str += "\033[31m" + object; str += "\033[31m" + object;
} else if(typeof(object) === "function") { } else if(typeof(object) === "function") {
str += "\033[35m[Function]"; str += "\033[35m" + object.toString().split(" {")[0];
} else { } else {
str += object; str += object;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment