1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

JSSpecCompiler: Create FunctionDeclarations for all external functions

This commit is contained in:
Dan Klishch 2023-10-02 13:34:00 -04:00 committed by Andrew Kaster
parent 5338cdd153
commit 7f47340c82
8 changed files with 32 additions and 35 deletions

View file

@ -47,7 +47,7 @@ void ReferenceResolvingPass::on_leave(Tree tree)
}
if (auto it = functions.find(name); it != functions.end()) {
replace_current_node_with(it->value);
replace_current_node_with(make_ref_counted<FunctionPointer>(it->value));
return;
}
}