diff options
author | Kenneth Bell <[email protected]> | 2023-09-11 23:27:47 +0100 |
---|---|---|
committer | Ayke <[email protected]> | 2023-09-21 01:18:05 +0200 |
commit | 58fafaeb5ce3ae0cdf0399dab392d24c2322b435 (patch) | |
tree | a58c6380251359d7283740a494d029b99308da8b /interp/interp_test.go | |
parent | 13a8eae0d4bce114405f175d4e73ec5a8b07a3aa (diff) | |
download | tinygo-58fafaeb5ce3ae0cdf0399dab392d24c2322b435.tar.gz tinygo-58fafaeb5ce3ae0cdf0399dab392d24c2322b435.zip |
build: #3893 do not return LLVM structs from Build
Diffstat (limited to 'interp/interp_test.go')
-rw-r--r-- | interp/interp_test.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/interp/interp_test.go b/interp/interp_test.go index 55ad3eaef..fc567af20 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -57,16 +57,14 @@ func runTest(t *testing.T, pathPrefix string) { if err != nil { if err, match := err.(*Error); match { println(err.Error()) - if !err.Inst.IsNil() { - err.Inst.Dump() - println() + if len(err.Inst) != 0 { + println(err.Inst) } if len(err.Traceback) > 0 { println("\ntraceback:") for _, line := range err.Traceback { println(line.Pos.String() + ":") - line.Inst.Dump() - println() + println(line.Inst) } } } |