mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 11:11:51 +00:00
LibJS: Set length property in Object::put_native_function()
This commit is contained in:
parent
b3c4514902
commit
cd3e2690eb
Notes:
sideshowbarker
2024-07-19 07:56:28 +09:00
Author: https://github.com/linusg
Commit: cd3e2690eb
Pull-request: https://github.com/SerenityOS/serenity/pull/1622
Reviewed-by: https://github.com/awesomekling ✅
14 changed files with 25 additions and 23 deletions
|
@ -43,9 +43,9 @@ WindowObject::WindowObject(Window& impl)
|
|||
{
|
||||
put_native_property("document", document_getter, document_setter);
|
||||
put_native_function("alert", alert);
|
||||
put_native_function("setInterval", set_interval);
|
||||
put_native_function("requestAnimationFrame", request_animation_frame);
|
||||
put_native_function("cancelAnimationFrame", cancel_animation_frame);
|
||||
put_native_function("setInterval", set_interval, 1);
|
||||
put_native_function("requestAnimationFrame", request_animation_frame, 1);
|
||||
put_native_function("cancelAnimationFrame", cancel_animation_frame, 1);
|
||||
|
||||
put("navigator", heap().allocate<NavigatorObject>());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue