good morning!!!!

Skip to content
Snippets Groups Projects
Commit c756633f authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop

parents 43454053 7c583f82
No related branches found
No related tags found
No related merge requests found
...@@ -2,17 +2,13 @@ package jsre ...@@ -2,17 +2,13 @@ package jsre
const pp_js = ` const pp_js = `
function pp(object, indent) { function pp(object, indent) {
var str = "";
/*
var o = object;
try { try {
object = JSON.stringify(object) JSON.stringify(object)
object = JSON.parse(object); } catch(e) {
} catch(e) { return pp(e, indent);
object = o; }
}
*/
var str = "";
if(object instanceof Array) { if(object instanceof Array) {
str += "["; str += "[";
for(var i = 0, l = object.length; i < l; i++) { for(var i = 0, l = object.length; i < l; i++) {
...@@ -24,7 +20,7 @@ function pp(object, indent) { ...@@ -24,7 +20,7 @@ function pp(object, indent) {
} }
str += " ]"; str += " ]";
} else if (object instanceof Error) { } else if (object instanceof Error) {
str += "\033[31m" + "Error"; str += "\033[31m" + "Error:\033[0m " + object.message;
} else if (isBigNumber(object)) { } else if (isBigNumber(object)) {
str += "\033[32m'" + object.toString(10) + "'"; str += "\033[32m'" + object.toString(10) + "'";
} else if(typeof(object) === "object") { } else if(typeof(object) === "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