mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
Notes:
sideshowbarker
2024-07-18 10:19:35 +09:00
Author: https://github.com/linusg
Commit: 3faeabf1dc
Pull-request: https://github.com/SerenityOS/serenity/pull/8493
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