ladybird/Userland
Andreas Kling b3f77e4769 LibJS: Don't copy current program counter into new execution contexts
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.
2024-09-08 11:33:50 +02:00
..
Libraries LibJS: Don't copy current program counter into new execution contexts 2024-09-08 11:33:50 +02:00
Services LibWeb: Note what's causing a style invalidation to happen 2024-09-08 09:45:31 +02:00
Utilities