Commit d6f4c515 authored by Péter Szilágyi's avatar Péter Szilágyi

jsre: print function arguments too

parent 78425593
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment