1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Do not use JS::Handle for TimerHandler

There is no need to use JS::Handle for timer handler because it is
visited from JS::HeapFunction in HTML::Timer.
This commit is contained in:
Aliaksandr Kalenik 2023-09-27 14:55:47 +02:00 committed by Andreas Kling
parent 3a1f617fbf
commit e7a3040c9f
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@
namespace Web::HTML {
// https://html.spec.whatwg.org/#timerhandler
using TimerHandler = Variant<JS::Handle<WebIDL::CallbackType>, String>;
using TimerHandler = Variant<JS::NonnullGCPtr<WebIDL::CallbackType>, String>;
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
class WindowOrWorkerGlobalScopeMixin {