mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
LibWeb: Make WindowObject::clear_interval() call correct function
This was incorrectly calling DOM::Window::clear_timeout(). In practice, these functions are interchangeable, but let's have things looking correct regardless.
This commit is contained in:
parent
7af7fc8c16
commit
643e2dec2c
Notes:
sideshowbarker
2024-07-18 03:05:19 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/643e2dec2c1
|
@ -341,7 +341,7 @@ JS_DEFINE_NATIVE_FUNCTION(WindowObject::clear_interval)
|
|||
i32 timer_id = vm.argument(0).to_i32(global_object);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
impl->clear_timeout(timer_id);
|
||||
impl->clear_interval(timer_id);
|
||||
return JS::js_undefined();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue