diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-19 11:52:56 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-19 11:54:11 +0100 |
commit | 07679e347cbe58aa90ea039013c0f884cf9ee7b2 (patch) | |
tree | ff2ab3fa4aaf7cc11d9fdf23c1b9481d24fa8fd4 /Kernel/Arch | |
parent | b1b4c9844e63a65a19f5772c614df29015b37ce1 (diff) | |
download | serenity-07679e347cbe58aa90ea039013c0f884cf9ee7b2.zip |
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!");
});
Diffstat (limited to 'Kernel/Arch')
0 files changed, 0 insertions, 0 deletions