console, internal/jsre: use github.com/dop251/goja (#20470)
This replaces the JavaScript interpreter used by the console with goja, which is actively maintained and a lot faster than otto. Clef still uses otto and eth/tracers still uses duktape, so we are currently dependent on three different JS interpreters. We're looking to replace the remaining uses of otto soon though.
Showing
- cmd/geth/consolecmd_test.go 6 additions, 2 deletionscmd/geth/consolecmd_test.go
- console/bridge.go 199 additions, 174 deletionsconsole/bridge.go
- console/console.go 115 additions, 92 deletionsconsole/console.go
- console/console_test.go 1 addition, 1 deletionconsole/console_test.go
- go.mod 3 additions, 0 deletionsgo.mod
- go.sum 8 additions, 0 deletionsgo.sum
- internal/jsre/completion.go 22 additions, 14 deletionsinternal/jsre/completion.go
- internal/jsre/completion_test.go 4 additions, 0 deletionsinternal/jsre/completion_test.go
- internal/jsre/jsre.go 82 additions, 105 deletionsinternal/jsre/jsre.go
- internal/jsre/jsre_test.go 17 additions, 17 deletionsinternal/jsre/jsre_test.go
- internal/jsre/pretty.go 102 additions, 72 deletionsinternal/jsre/pretty.go
Loading
Please register or sign in to comment