mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibJS+LibWeb: Convert empty PrimitiveString invocators to String
This commit is contained in:
committed by
Linus Groh
parent
1bcde5d216
commit
34574c5ee8
Notes:
sideshowbarker
2024-07-17 01:24:50 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/34574c5ee8 Pull-request: https://github.com/SerenityOS/serenity/pull/17122 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/nico
@@ -29,7 +29,7 @@ void NumberFormatFunction::initialize(Realm& realm)
|
||||
|
||||
Base::initialize(realm);
|
||||
define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
|
||||
define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
||||
define_direct_property(vm.names.name, PrimitiveString::create(vm, String {}), Attribute::Configurable);
|
||||
}
|
||||
|
||||
ThrowCompletionOr<Value> NumberFormatFunction::call()
|
||||
|
||||
Reference in New Issue
Block a user