diff --git a/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp b/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp
index 1064aa39051..5d95a07b8ee 100644
--- a/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp
+++ b/Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp
@@ -1001,10 +1001,10 @@ void WindowOrWorkerGlobalScopeMixin::report_an_exception(JS::Value exception, Om
// FIXME: 3. If notHandled is true, then report exception for workerObject's relevant global object with
// omitError set to true.
}
- }
- // 8. Otherwise, the user agent may report exception to a developer console.
- else {
- report_exception_to_console(exception, realm, ErrorInPromise::No);
+ // 3. Otherwise, the user agent may report exception to a developer console.
+ else {
+ report_exception_to_console(exception, realm, ErrorInPromise::No);
+ }
}
}