mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 19:05:08 +00:00
JSSpecCompiler: Introduce Function and ExecutionContext classes
Currently, they are not extremely useful, but the plan is to store all function-local state in JSSpecCompiler::Function and all "translation unit" state in ExecutionContext.
This commit is contained in:
parent
f05d291b41
commit
cd8f4aaa7d
9 changed files with 74 additions and 9 deletions
|
@ -25,7 +25,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
|||
}
|
||||
auto document = maybe_document.release_value();
|
||||
|
||||
auto maybe_function = JSSpecCompiler::Function::create(&document.root());
|
||||
auto maybe_function = JSSpecCompiler::SpecFunction::create(&document.root());
|
||||
if (maybe_function.is_error()) {
|
||||
outln("{}", maybe_function.error()->to_string());
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue