mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibJS: Add missing length field to Symbol.prototype[Symbol.ToPrimitive]
Since the argument was missing Attribute::Configurable was used as the length, which resulted in incorrect attributes being applied.
This commit is contained in:
parent
71b4433b0d
commit
1c51edb639
Notes:
sideshowbarker
2024-07-18 12:42:58 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/1c51edb6395 Pull-request: https://github.com/SerenityOS/serenity/pull/7877 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ void SymbolPrototype::initialize(GlobalObject& global_object)
|
|||
define_native_property(vm.names.description, description_getter, {}, Attribute::Configurable);
|
||||
define_native_function(vm.names.toString, to_string, 0, Attribute::Writable | Attribute::Configurable);
|
||||
define_native_function(vm.names.valueOf, value_of, 0, Attribute::Writable | Attribute::Configurable);
|
||||
define_native_function(vm.well_known_symbol_to_primitive(), symbol_to_primitive, Attribute::Configurable);
|
||||
define_native_function(vm.well_known_symbol_to_primitive(), symbol_to_primitive, 1, Attribute::Configurable);
|
||||
define_property(vm.well_known_symbol_to_string_tag(), js_string(global_object.heap(), "Symbol"), Attribute::Configurable);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue