Fix ethereum compilation and functioning on Windows.

repl console output is now colored.
repl "exit" command now works.
This commit is contained in:
Erez Wanderman
2014-10-15 02:41:26 +03:00
parent 294b437414
commit 7227552f42
4 changed files with 141 additions and 5 deletions

View File

@@ -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)
}
}
}