mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-09 20:21:20 +00:00
jsre: print function arguments too
This commit is contained in:
parent
7842559353
commit
d6f4c515f5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user