mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
JSSpecCompiler: Create FunctionDeclaration
s for all external functions
This commit is contained in:
parent
5338cdd153
commit
7f47340c82
8 changed files with 32 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue