diff options
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) + } } } |