-
Notifications
You must be signed in to change notification settings - Fork 569
Closed
Description
Issue:
When recovering from a panic created by another deferred function the handler seems to crash.
Example here: https://gopherjs.github.io/playground/#/SNlZWoHnci
Execution locally with go run:
~/c/g/s/s/jsdefer$ go run main.go
recovered in bar: a panic
recovered in foo: bar
Err: failed
Execution with gopherjs run:
~/c/g/s/s/jsdefer$ gopherjs run main.go
recovered in bar: a panic
recovered in foo: bar
/home/ben/code/goprojects/src/scratchpad/jsdefer/main.go.122417206:1480
throw err;
^
null