mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +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
@@ -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