good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 27, 2016
  2. Apr 26, 2016
  3. Apr 25, 2016
  4. Apr 22, 2016
  5. Apr 20, 2016
    • Felix Lange's avatar
      cmd/geth, jsre: improve the js command · 87ae0df4
      Felix Lange authored
      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
      87ae0df4
  6. Apr 19, 2016
  7. Apr 15, 2016
  8. Apr 14, 2016
  9. Apr 13, 2016
Loading