We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7da3b06 commit f0c597aCopy full SHA for f0c597a
Libraries/LibWeb/HTML/WindowOrWorkerGlobalScope.cpp
@@ -298,8 +298,8 @@ i32 WindowOrWorkerGlobalScopeMixin::run_timer_initialization_steps(TimerHandler
298
[&](String const& source) {
299
// 1. If previousId was not given:
300
if (!previous_id.has_value()) {
301
- // 1. Let globalName be "Window" if global is a Window object; "Worker" otherwise.
302
- auto global_name = is<Window>(this_impl()) ? "Window"sv : "Worker"sv;
+ // 1. Let globalName be "Window" if global is a Window object; "WorkerGlobalScope" otherwise.
+ auto global_name = is<Window>(this_impl()) ? "Window"sv : "WorkerGlobalScope"sv;
303
304
// 2. Let methodName be "setInterval" if repeat is true; "setTimeout" otherwise.
305
auto method_name = repeat == Repeat::Yes ? "setInterval"sv : "setTimeout"sv;
0 commit comments