Open
Description
Consider the following program:
package main
func main() {
defer recover()
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.