plugeth/cmd
Felix Lange 87ae0df476 cmd/geth, jsre: improve the js command
geth js stopped the JS runtime after running the first input file
and blocked for pending callbacks. This commit makes it process
all files and enables quitting with Ctrl-C regardless of callbacks.

Error reporting is also improved. If a script fails to load, the error
is printed and includes the backtrace. package jsre now ensures that
otto is aware of the filename, the backtrace will contain them.

Before:

$ geth js bad.js; echo "exit $?"
... log messages ...
exit 0

After:

$ geth js bad.js; echo "exit $?"
... log messages ...
Fatal: JavaScript Error: Invalid number of input parameters
    at web3.js:3109:20
    at web3.js:4917:15
    at web3.js:4960:5
    at web3.js:4984:23
    at checkWork (bad.js:11:9)
    at bad.js:19:1

exit 1
2016-04-20 23:33:43 +02:00
..
abigen all: update license information 2016-04-15 09:48:05 +02:00
bootnode all: fix go vet warnings 2016-04-15 11:17:27 +02:00
disasm all: update license headers to distiguish GPL/LGPL 2015-07-22 18:51:45 +02:00
ethtest all: fix go vet warnings 2016-04-15 11:17:27 +02:00
evm core: added basic chain configuration 2016-04-01 01:01:10 +02:00
geth cmd/geth, jsre: improve the js command 2016-04-20 23:33:43 +02:00
gethrpctest Merge pull request #2284 from fjl/accounts-addr-cache 2016-04-12 17:51:09 +03:00
rlpdump all: update license headers to distiguish GPL/LGPL 2015-07-22 18:51:45 +02:00
utils all: fix go vet warnings 2016-04-15 11:17:27 +02:00