You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
funcmain() {
deferrecover()
panic(1)
}
Compare upstream vs gopherjs:
$ go run main.go
panic: 1
goroutine 1 [running]:
main.main()
/home/aleks/git/repro/035-defer-recover/main.go:5 +0x65
exit status 2
$ gopherjs run main.go
# No errors
While this may seem counter-intuitive, this is WAI according to golang/go#1272.