aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/jsre.go
Commit message (Collapse)AuthorAgeFilesLines
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-301-322/+0
|
* cmd/geth, jsre: improve the js commandFelix Lange2016-04-211-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* jsre: expose DoFelix Lange2016-04-131-8/+8
|
* console: seed random number generatorBas van Kervel2016-02-191-0/+18
|
* jrse: fix #1082, fail if setTimeout/setInterval lack callbackPéter Szilágyi2015-11-231-5/+15
|
* jsre: timer bugfix when clearInterval was called from within the callbackBas van Kervel2015-09-161-1/+3
|
* jsre: bind the pretty printer to "inspect" in JSFelix Lange2015-08-161-0/+1
|
* cmd/geth, jsre: restore command line editing on windowsFelix Lange2015-08-121-25/+8
| | | | | | | | | | | | | PR #856 broke command line editing by wrapping stdout with a filter that interprets ANSI escape sequences to fix colored printing on windows. Implement the printer in Go instead so it can do its own platform-dependent coloring. As a nice side effect, the JS console is now noticeably more responsive when printing results. Fixes #1608 Fixes #1612
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: update license informationFelix Lange2015-07-071-0/+16
|
* cmd/geth, jsre, rpc: run all JS code on the event loopFelix Lange2015-05-251-149/+86
| | | | | | Some JSRE methods (PrettyPrint, ToVal) bypassed the event loop. All calls to the JS VM are now wrapped. In order to make this somewhat more foolproof, the otto VM is now a local variable inside the event loop.
* Merge pull request #882 from zsfelfoldi/developJeffrey Wilcke2015-05-081-2/+17
|\ | | | | Otto.ToValue concurrency error fixed
| * ToVal serialization fixzsfelfoldi2015-05-081-2/+3
| |
| * Otto.ToValue concurrency error fixedzsfelfoldi2015-05-081-2/+16
| |
* | jsre, cmd/geth: updated web3.js and altered settimeoutobscuren2015-05-081-5/+5
|/
* setTimeout and sendAsync implementedzsfelfoldi2015-05-061-13/+220
| | | | added and eval queue for serializing JSRE vm execution
* Better error reporting in the console. Updated ethereum.jsobscuren2015-03-251-1/+11
|
* using robertkrimen/otto, godeps updatedzsfelfoldi2015-03-201-1/+1
|
* ethutil -> commonzelig2015-03-161-2/+2
|
* jsre:zelig2015-03-151-0/+115
- require became loadScript(), no require is supplied - bignumber_js.go: heredoc v2.0.3 minified fixed for otto Regexp incompatibility https://github.com/robertkrimen/otto#regular-expression-incompatibility - bignumber.min.js also updated in mist/assets/ext - ethereum_js.go: latest master minified - assetPath in constructor - Eval/Exec/Handle/ToVal nice API - jsre tests