mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-14 02:46:22 +02:00
This didn't make any sense, and was already handled by pushing a new execution context anyway. By simply removing these bogus lines of code, we fix a bug where throwing inside a function whose bytecode was shorter than the calling function would crash trying to generate an Error stack trace (because the bytecode offset we were trying to symbolicate was actually from the longer caller function, and not valid in the callee function.) This makes --log-all-js-exceptions less crash prone and more helpful. (cherry picked from commit b3f77e47690cfd07058d824ea6f0b652489778bf)
11 KiB
11 KiB