mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
LibJS: Fix logic typo in CyclicModule::inner_module_linking()
The comment was right, but the code didn't match.
This commit is contained in:
@@ -127,7 +127,7 @@ void CyclicModule::inner_module_loading(JS::GraphLoadingState& state)
|
||||
for (auto const& loaded : state.visited) {
|
||||
// i. If loaded.[[Status]] is NEW, set loaded.[[Status]] to UNLINKED.
|
||||
if (loaded->m_status == ModuleStatus::New)
|
||||
loaded->m_status = ModuleStatus::Linked;
|
||||
loaded->m_status = ModuleStatus::Unlinked;
|
||||
}
|
||||
|
||||
// c. Perform ! Call(state.[[PromiseCapability]].[[Resolve]], undefined, « undefined »).
|
||||
|
||||
Reference in New Issue
Block a user