Skip to content

cannot return error while panic #99

Open
@elvin-du

Description

@elvin-du

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)
}

Metadata

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