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 /ethereum/repl/repl_darwin.go | |
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 'ethereum/repl/repl_darwin.go')
-rw-r--r-- | ethereum/repl/repl_darwin.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ethereum/repl/repl_darwin.go b/ethereum/repl/repl_darwin.go index 4c07280f7..2a53e5fc6 100644 --- a/ethereum/repl/repl_darwin.go +++ b/ethereum/repl/repl_darwin.go @@ -118,6 +118,9 @@ func (self *JSRepl) PrintValue(v interface{}) { method, _ := self.re.Vm.Get("prettyPrint") v, err := self.re.Vm.ToValue(v) if err == nil { - method.Call(method, v) + val, err := method.Call(method, v) + if err == nil { + fmt.Printf("%v", val) + } } } |