From 4b1053e32716e7f697965feb7020d31ea62e9ed1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 2 Dec 2023 23:28:27 +0100 Subject: [PATCH] LibJS: Fix logic typo in CyclicModule::inner_module_linking() The comment was right, but the code didn't match. --- Userland/Libraries/LibJS/CyclicModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/CyclicModule.cpp b/Userland/Libraries/LibJS/CyclicModule.cpp index e1f0b16639..1848b4d0b9 100644 --- a/Userland/Libraries/LibJS/CyclicModule.cpp +++ b/Userland/Libraries/LibJS/CyclicModule.cpp @@ -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 »).