Skip to content

Recover from defered panic causes crash #780

@lologarithm

Description

@lologarithm

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions