mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user