LibJS: Fix logic typo in ContinueModuleLoading

This commit is contained in:
Andreas Kling 2023-12-03 14:20:48 +01:00
parent fc31a0d506
commit 5e67853b49
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00

View file

@ -141,7 +141,7 @@ void CyclicModule::inner_module_loading(JS::GraphLoadingState& state)
void continue_module_loading(GraphLoadingState& state, ThrowCompletionOr<NonnullGCPtr<Module>> const& module_completion)
{
// 1. If state.[[IsLoading]] is false, return UNUSED.
if (state.is_loading)
if (!state.is_loading)
return;
// 2. If moduleCompletion is a normal completion, then