Skip to content

Commit bc22ee9

Browse files
authored
Merge pull request #336 from bytecodealliance/ydnar/cleanup
all: small updates
2 parents b5baa22 + eb9127c commit bc22ee9

File tree

7 files changed

+51
-404
lines changed

7 files changed

+51
-404
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
go-modules: ./... ./cm/...
17-
wasm-tools-version: "1.226.0"
17+
wasm-tools-version: "1.229.0"
1818
wasmtime-version: "26.0.0"
1919

2020
jobs:

internal/go/stack/trace.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package stack
2+
3+
import (
4+
"fmt"
5+
"runtime"
6+
)
7+
8+
func Trace() []string {
9+
var out []string
10+
for i := 1; i < 1024; i++ {
11+
_, file, line, ok := runtime.Caller(i)
12+
if !ok {
13+
break
14+
}
15+
out = append(out, fmt.Sprintf("%s:%d", file, line))
16+
}
17+
return out
18+
}

0 commit comments

Comments
 (0)