mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibJS: Set the length of Date.UTC to 7
This is a bit unusual because there is only 1 required argument, but the spec dictates that the length is 7.
This commit is contained in:
parent
bb9db5937a
commit
e8f860048e
Notes:
sideshowbarker
2024-07-17 21:34:50 +09:00
Author: https://github.com/trflynn89
Commit: e8f860048e
Pull-request: https://github.com/SerenityOS/serenity/pull/11644
Reviewed-by: https://github.com/Lubrsi
Reviewed-by: https://github.com/linusg ✅
2 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,7 @@ void DateConstructor::initialize(GlobalObject& global_object)
|
|||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_native_function(vm.names.now, now, 0, attr);
|
||||
define_native_function(vm.names.parse, parse, 1, attr);
|
||||
define_native_function(vm.names.UTC, utc, 1, attr);
|
||||
define_native_function(vm.names.UTC, utc, 7, attr);
|
||||
|
||||
define_direct_property(vm.names.length, Value(7), Attribute::Configurable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue