ladybird/Userland/Libraries/LibJS
Andreas Kling 4f488f7e07 LibJS: Avoid creating empty environment for catch without parameter
When there is no `catch` parameter to bind the error, we don't need
to allocate an environment, since there's nothing to add to it.

This avoids one environment allocation every time we catch like this:

    try {
        ...
    } catch {
        ...
    }
2023-09-25 19:47:24 +02:00
..
Bytecode LibJS: Avoid creating empty environment for catch without parameter 2023-09-25 19:47:24 +02:00
Contrib/Test262
Heap LibJS: Defer GC during cell construction 2023-09-25 13:19:25 +02:00
Runtime LibJS: Fix spelling in VM.cpp 2023-09-25 10:58:58 +02:00
Tests LibJS: Create const variables in ForIn/OfBodyEvaluation in strict mode 2023-09-21 16:19:05 +02:00
AST.cpp LibJS: Add spec comments to ScopeNode::block_declaration_instantiation 2023-09-21 16:19:05 +02:00
AST.h
CMakeLists.txt
Console.cpp
Console.h
CyclicModule.cpp
CyclicModule.h
Forward.h
Lexer.cpp
Lexer.h
MarkupGenerator.cpp LibJS: Use OrderedHashMap for the Shape property table 2023-09-17 21:00:11 +02:00
MarkupGenerator.h
Module.cpp
Module.h
Parser.cpp
Parser.h
ParserError.cpp
ParserError.h
Position.h
Print.cpp
Print.h
SafeFunction.h
Script.cpp
Script.h
SourceCode.cpp
SourceCode.h
SourceRange.h
SourceTextModule.cpp LibJS: Remove unused realm parameter from run_and_return_frame() 2023-09-21 16:19:13 +02:00
SourceTextModule.h
SyntaxHighlighter.cpp
SyntaxHighlighter.h
SyntheticModule.cpp
SyntheticModule.h
Token.cpp
Token.h