Skip to content

cannot return error while panic #99

Open
@elvin-du

Description

When there is panic inside the function, the following code will not return the error at all。Previous code is OK

//compiler/module.go
func (m *Module) CompileForInterpreter(gp GasPolicy) ([]InterpreterCode, error) {
	var (
		ret    []InterpreterCode
		retErr error
	)

	defer utils.CatchPanic(&retErr)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions