mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:58:12 +00:00
![]() This clears the handler pointer of the current unwind context before jumping to it. This is necessary to not loop infinitely when an exception is thrown from the handler. In that case control flow should go to the finalizer instead. This mirrors how unwind_context.handler_called is used in the Bytecode::Interpreter. `try { throw 1 } catch (e) { throw 2 } finally {}` now runs without looping infinitely in the catch block. |
||
---|---|---|
.. | ||
Compiler.cpp | ||
Compiler.h | ||
NativeExecutable.cpp | ||
NativeExecutable.h |