jsre: print function arguments too

pull/1213/head
Péter Szilágyi 10 years ago
parent 7842559353
commit d6f4c515f5
  1. 2
      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;
}

Loading…
Cancel
Save