mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
8b7d27b349
commit
4b1053e327
Notes:
sideshowbarker
2024-07-17 00:59:43 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4b1053e327 Pull-request: https://github.com/SerenityOS/serenity/pull/21967 Issue: https://github.com/SerenityOS/serenity/issues/21737 Issue: https://github.com/SerenityOS/serenity/issues/21899
1 changed files with 1 additions and 1 deletions
|
@ -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 »).
|
||||
|
|
Loading…
Reference in a new issue