LibJS: Fix logic typo in CyclicModule::inner_module_linking()

The comment was right, but the code didn't match.
This commit is contained in:
Andreas Kling 2023-12-02 23:28:27 +01:00
parent 8b7d27b349
commit 4b1053e327
Notes: sideshowbarker 2024-07-17 00:59:43 +09:00

View file

@ -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 »).