forked from cerc-io/plugeth
87ae0df476
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 |
||
---|---|---|
.. | ||
testdata | ||
accountcmd_test.go | ||
accountcmd.go | ||
chaincmd.go | ||
info_test.json | ||
js_test.go | ||
js.go | ||
library_android.go | ||
library.c | ||
library.go | ||
main.go | ||
monitorcmd.go | ||
run_test.go | ||
usage.go |