Skip to content

JuliaInterpreter model of :pop_exception is incorrect #591

@Keno

Description

@Keno

JuliaInterpreter treats :pop_exception, as another spelling of :leave, but this is a misunderstanding. :pop_exception operates on the stack of exceptions (i.e. an exception gets pushed on the stack when we take a catch edge), not the stack of exception handlers

n = lookup_var(frame, node.args[1]::SSAValue)::Int
deleteat!(data.exception_frames, n+1:length(data.exception_frames))

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