diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-06 16:05:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-06 16:05:34 +0800 |
commit | c7afb5fb72579fb61139a6365c380a4d9370a7b9 (patch) | |
tree | 39dc5ea2cf3ab00664caee6bb24ee278ef48b642 /ethereum/repl/javascript_runtime.go | |
parent | 852d1ee395feabaa0e72265106374a0df197db9a (diff) | |
download | go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.gz go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.bz2 go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.lz go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.xz go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.tar.zst go-tangerine-c7afb5fb72579fb61139a6365c380a4d9370a7b9.zip |
output dump string, not undefined
Diffstat (limited to 'ethereum/repl/javascript_runtime.go')
-rw-r--r-- | ethereum/repl/javascript_runtime.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethereum/repl/javascript_runtime.go b/ethereum/repl/javascript_runtime.go index 29b5f442f..026e6f374 100644 --- a/ethereum/repl/javascript_runtime.go +++ b/ethereum/repl/javascript_runtime.go @@ -181,9 +181,9 @@ func (self *JSRE) dump(call otto.FunctionCall) otto.Value { state = self.ethereum.StateManager().CurrentState() } - fmt.Println(state.Dump()) + v, _ := self.vm.ToValue(state.Dump()) - return otto.UndefinedValue() + return v } func (self *JSRE) stopMining(call otto.FunctionCall) otto.Value { |