aboutsummaryrefslogtreecommitdiffhomepage
path: root/main_test.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-11-29 14:54:34 +0100
committerRon Evans <[email protected]>2022-06-16 07:59:21 +0200
commit8d6b210c09e53f05c315556fc97a069e304b37dc (patch)
treeb3ab43cd8806edbc8e3263a9831c3a55ac5cb9c7 /main_test.go
parent79ba6a50c3e125db4918a4b3b51f57380045973d (diff)
downloadtinygo-8d6b210c09e53f05c315556fc97a069e304b37dc.tar.gz
tinygo-8d6b210c09e53f05c315556fc97a069e304b37dc.zip
compiler: implement recover() built-in function
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go
index 48f479eff..c069290d0 100644
--- a/main_test.go
+++ b/main_test.go
@@ -244,6 +244,13 @@ func runPlatTests(options compileopts.Options, tests []string, t *testing.T) {
runTest("rand.go", options, t, nil, nil)
})
}
+ if options.Target != "wasi" && options.Target != "wasm" {
+ // The recover() builtin isn't supported yet on WebAssembly and Windows.
+ t.Run("recover.go", func(t *testing.T) {
+ t.Parallel()
+ runTest("recover.go", options, t, nil, nil)
+ })
+ }
}
func emuCheck(t *testing.T, options compileopts.Options) {