mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +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:
parent
3a1f617fbf
commit
e7a3040c9f
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: e7a3040c9f
Pull-request: https://github.com/SerenityOS/serenity/pull/21242
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue