aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorErez Wanderman <erez.wanderman@outlook.com>2014-10-15 07:41:26 +0800
committerErez Wanderman <erez.wanderman@outlook.com>2014-10-15 07:41:26 +0800
commit7227552f429e6ad035b22167d667712e61fcebbb (patch)
treec8617b81efa99b2a71140e9ca5a19175212ae326 /javascript
parent294b4374148fb2afa019779a4ef17bec5d4c3665 (diff)
downloadgo-tangerine-7227552f429e6ad035b22167d667712e61fcebbb.tar.gz
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.go4
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;