From 7227552f429e6ad035b22167d667712e61fcebbb Mon Sep 17 00:00:00 2001 From: Erez Wanderman Date: Wed, 15 Oct 2014 02:41:26 +0300 Subject: Fix ethereum compilation and functioning on Windows. repl console output is now colored. repl "exit" command now works. --- javascript/js_lib.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'javascript') diff --git a/javascript/js_lib.go b/javascript/js_lib.go index a3e9b8a5b..dd1fe5f4d 100644 --- a/javascript/js_lib.go +++ b/javascript/js_lib.go @@ -44,9 +44,11 @@ function pp(object) { function prettyPrint(/* */) { var args = arguments; + var ret = ""; for(var i = 0, l = args.length; i < l; i++) { - console.log(pp(args[i])) + ret += pp(args[i]) + "\n"; } + return ret; } var print = prettyPrint; -- cgit v1.2.3