mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibJS: Fix logic typo in ContinueModuleLoading
This commit is contained in:
parent
fc31a0d506
commit
5e67853b49
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ void CyclicModule::inner_module_loading(JS::GraphLoadingState& state)
|
||||||
void continue_module_loading(GraphLoadingState& state, ThrowCompletionOr<NonnullGCPtr<Module>> const& module_completion)
|
void continue_module_loading(GraphLoadingState& state, ThrowCompletionOr<NonnullGCPtr<Module>> const& module_completion)
|
||||||
{
|
{
|
||||||
// 1. If state.[[IsLoading]] is false, return UNUSED.
|
// 1. If state.[[IsLoading]] is false, return UNUSED.
|
||||||
if (state.is_loading)
|
if (!state.is_loading)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// 2. If moduleCompletion is a normal completion, then
|
// 2. If moduleCompletion is a normal completion, then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue