diff options
author | Erez Wanderman <erez.wanderman@outlook.com> | 2014-10-15 07:41:26 +0800 |
---|---|---|
committer | Erez Wanderman <erez.wanderman@outlook.com> | 2014-10-15 07:41:26 +0800 |
commit | 7227552f429e6ad035b22167d667712e61fcebbb (patch) | |
tree | c8617b81efa99b2a71140e9ca5a19175212ae326 /javascript | |
parent | 294b4374148fb2afa019779a4ef17bec5d4c3665 (diff) | |
download | go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.gz go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.bz2 go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.lz go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.xz go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.zst go-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.zip |
Fix ethereum compilation and functioning on Windows.
repl console output is now colored.
repl "exit" command now works.
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/js_lib.go | 4 |
1 files changed, 3 insertions, 1 deletions
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; |