ladybird/Userland/Libraries/LibJS
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
..
Bytecode LibJS: Fix crash in bytecode generator on https://twinings.co.uk/ 2024-07-24 11:13:53 +02:00
Contrib/Test262 LibJS: Make ParserError::to_string infallible 2024-04-05 20:01:37 -04:00
Heap LibJS: Use the system native page size as the HeapBlock::block_size 2024-08-29 13:56:09 +02:00
Runtime LibJS: Don't copy current program counter into new execution contexts 2024-09-08 11:33:50 +02:00
Tests LibJS: Don't copy current program counter into new execution contexts 2024-09-08 11:33:50 +02:00
AST.cpp LibJS: Skip ordinary_call_bind_this() when possible 2024-05-23 09:53:31 +02:00
AST.h LibJS: Skip ordinary_call_bind_this() when possible 2024-05-23 09:53:31 +02:00
CMakeLists.txt LibJS: Implement Uint8Array.prototype.toBase64 2024-09-03 17:43:03 +02:00
Console.cpp LibJS+WebContent: Implement console.table 2024-08-22 09:08:50 +01:00
Console.h LibJS+WebContent: Implement console.table 2024-08-22 09:08:50 +01:00
CyclicModule.cpp Everywhere: Write dtors for types with incomplete members out-of-line 2024-06-16 07:19:56 -04:00
CyclicModule.h Everywhere: Write dtors for types with incomplete members out-of-line 2024-06-16 07:19:56 -04:00
Forward.h LibJS/Bytecode: Make StringTableIndex be a 32-bit index 2024-05-10 15:03:24 +00:00
Lexer.cpp LibJS: Remove unused field Token::m_filename 2024-09-02 15:22:51 +02:00
Lexer.h LibJS: Lex 1/2/3-byte tokens without HashMap lookups 2024-03-24 13:28:24 +01:00
MarkupGenerator.cpp AK+Userland: Remove some needlessly explicit conversions to StringView 2024-04-04 11:23:21 +02:00
MarkupGenerator.h LibJS: Fix redundancy-detection when printing raw values 2023-06-15 08:09:16 +02:00
Module.cpp LibJS: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
Module.h LibJS: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ModuleLoading.h LibJS+LibWeb: Another round of bringing module loading closer to spec 2023-12-03 20:46:55 +01:00
Parser.cpp LibJS: Remember arrow function parsing failures by offset 2024-09-02 15:22:51 +02:00
Parser.h LibJS: Remember arrow function parsing failures by offset 2024-09-02 15:22:51 +02:00
ParserError.cpp LibJS: Make ParserError::to_string infallible 2024-04-05 20:01:37 -04:00
ParserError.h LibJS: Make ParserError::to_string infallible 2024-04-05 20:01:37 -04:00
Position.h LibJS: Make line-and-column resolution fast for large minified JS 2023-09-12 17:21:42 +02:00
Print.cpp LibJS+LibUnicode: Update the Intl.DateTimeFormat constructor spec steps 2024-08-15 17:21:00 -04:00
Print.h Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
SafeFunction.h LibJS: Add GC graph dumper 2023-08-17 18:27:02 +02:00
Script.cpp LibJS: Segregate GC-allocated objects by type 2023-11-19 12:10:31 +01:00
Script.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SourceCode.cpp LibJS: Make line-and-column resolution fast for large minified JS 2023-09-12 17:21:42 +02:00
SourceCode.h LibJS: Make line-and-column resolution fast for large minified JS 2023-09-12 17:21:42 +02:00
SourceRange.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
SourceTextModule.cpp LibJS: Fix mix-up when re-exporting an imported symbol with a new name 2024-09-02 17:14:21 +02:00
SourceTextModule.h Everywhere: Write dtors for types with incomplete members out-of-line 2024-06-16 07:19:56 -04:00
SyntaxHighlighter.cpp LibSyntax+Userland: Make LibSyntax not depend on LibGUI 2023-08-29 07:57:39 -04:00
SyntaxHighlighter.h LibSyntax: Teach each highlighter about it's comment syntax 2022-11-27 18:28:43 -07:00
SyntheticModule.cpp LibJS: Remove two unused members from ExecutionContext 2024-05-31 16:31:33 +02:00
SyntheticModule.h LibJS: Support LoadRequestedModule AO on SyntheticModule records 2023-12-03 20:46:55 +01:00
Token.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
Token.h LibJS: Remove unused field Token::m_filename 2024-09-02 15:22:51 +02:00