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.
This commit is contained in:
		
				
					committed by
					
						 Felix Lange
						Felix Lange
					
				
			
			
				
	
			
			
			
						parent
						
							60deeb103e
						
					
				
				
					commit
					7b68975a00
				
			| @@ -289,7 +289,7 @@ func TestPrettyError(t *testing.T) { | ||||
| 	defer tester.Close(t) | ||||
| 	tester.console.Evaluate("throw 'hello'") | ||||
|  | ||||
| 	want := jsre.ErrorColor("hello") + "\n" | ||||
| 	want := jsre.ErrorColor("hello") + "\n\tat <eval>:1:7(1)\n\n" | ||||
| 	if output := tester.output.String(); output != want { | ||||
| 		t.Fatalf("pretty error mismatch: have %s, want %s", output, want) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user