mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 06:23:39 +00:00
compiler: support panics inside indirect deferred functions
Found this bug while working on WebAssembly recover support.
This commit is contained in:
Vendored
+6
@@ -19,6 +19,12 @@ recovered 2: foo
|
||||
# panic inside defer
|
||||
recovered: panic
|
||||
|
||||
# panic inside indirect defer
|
||||
recovered: panic
|
||||
|
||||
# panic inside closure
|
||||
recovered: panic
|
||||
|
||||
# panic replace
|
||||
panic 1
|
||||
panic 2
|
||||
|
||||
Reference in New Issue
Block a user