ladybird/Libraries/LibJS
Andreas Kling 07679e347c LibJS: Parse FunctionExpressions
FunctionExpression is mostly like FunctionDeclaration, except the name
is optional. Share the parsing logic in parse_function_node<NodeType>.

This allows us to do nice things like:

    document.addEventListener("DOMContentLoaded", function() {
        alert("Hello friends!");
    });
2020-03-19 11:54:11 +01:00
..
Heap LibJS: Add missing copyright headers 2020-03-18 20:21:06 +01:00
Runtime LibJS: Tolerate NativeFunction::call() with non-object 'this' for now 2020-03-18 17:13:22 +01:00
AST.cpp LibJS: Add FunctionExpression AST node 2020-03-19 11:12:08 +01:00
AST.h LibJS: Parse FunctionExpressions 2020-03-19 11:54:11 +01:00
Forward.h LibJS: Add Handle<T>, a strong C++ handle for keeping GC objects alive 2020-03-18 20:03:17 +01:00
Interpreter.cpp LibJS: Add Interpreter::call(Function*, this_value, arguments) 2020-03-18 17:13:22 +01:00
Interpreter.h LibJS: Add Interpreter::call(Function*, this_value, arguments) 2020-03-18 17:13:22 +01:00
Lexer.cpp LibJS: Implement null and undefined literals 2020-03-16 13:42:13 +01:00
Lexer.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Makefile LibJS: Add Handle<T>, a strong C++ handle for keeping GC objects alive 2020-03-18 20:03:17 +01:00
Parser.cpp LibJS: Parse FunctionExpressions 2020-03-19 11:54:11 +01:00
Parser.h LibJS: Parse FunctionExpressions 2020-03-19 11:54:11 +01:00
Token.cpp LibJS: Implement null and undefined literals 2020-03-16 13:42:13 +01:00
Token.h LibJS: Implement null and undefined literals 2020-03-16 13:42:13 +01:00