mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:37:35 +00:00
Revert "LibJS: Don't hoist functions under certain circumstances"
This reverts commit 3411d50737
.
It was causing LeakSanitizer on CI to fail, possibly due to a circular
reference.
This commit is contained in:
parent
73183ee5c4
commit
3faeabf1dc
4 changed files with 8 additions and 45 deletions
|
@ -2377,9 +2377,9 @@ void ScopeNode::add_functions(NonnullRefPtrVector<FunctionDeclaration> functions
|
|||
m_functions.extend(move(functions));
|
||||
}
|
||||
|
||||
void ScopeNode::add_hoisted_function(NonnullRefPtr<FunctionDeclaration> hoisted_function)
|
||||
void ScopeNode::add_hoisted_functions(NonnullRefPtrVector<FunctionDeclaration> hoisted_functions)
|
||||
{
|
||||
m_hoisted_functions.append(hoisted_function);
|
||||
m_hoisted_functions.extend(move(hoisted_functions));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue