mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibJS: Define the Intl.Collator's compare function name to be empty
This commit is contained in:
committed by
Linus Groh
parent
f3c4146140
commit
96459e4b3a
Notes:
sideshowbarker
2024-07-17 18:26:16 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/96459e4b3a Pull-request: https://github.com/SerenityOS/serenity/pull/12700
@@ -26,6 +26,7 @@ void CollatorCompareFunction::initialize(GlobalObject& global_object)
|
||||
{
|
||||
auto& vm = global_object.vm();
|
||||
define_direct_property(vm.names.length, Value(2), Attribute::Configurable);
|
||||
define_direct_property(vm.names.name, js_string(vm, String::empty()), Attribute::Configurable);
|
||||
}
|
||||
|
||||
// 10.3.3.2 CompareStrings ( collator, x, y ), https://tc39.es/ecma402/#sec-collator-comparestrings
|
||||
|
||||
Reference in New Issue
Block a user