JuliaDebug / JuliaInterpreter.jl

Interpreter for Julia code
Other
162 stars 34 forks source link

JuliaInterpreter model of :pop_exception is incorrect #591

Open Keno opened 12 months ago

Keno commented 12 months ago

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

https://github.com/JuliaDebug/JuliaInterpreter.jl/blob/a3cf18e0997f79d9caaa79242c314157b6b80578/src/interpret.jl#L490-L491