mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-01 21:59:11 +00:00
LibJS: Make Symbol.prototype.description an accessor
This commit is contained in:
parent
b121837898
commit
5c1af1d6f7
Notes:
sideshowbarker
2024-07-18 12:17:17 +09:00
Author: https://github.com/linusg
Commit: 5c1af1d6f7
Pull-request: https://github.com/SerenityOS/serenity/pull/8042
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ void SymbolPrototype::initialize(GlobalObject& global_object)
|
||||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||||
define_native_function(vm.names.toString, to_string, 0, attr);
|
define_native_function(vm.names.toString, to_string, 0, attr);
|
||||||
define_native_function(vm.names.valueOf, value_of, 0, attr);
|
define_native_function(vm.names.valueOf, value_of, 0, attr);
|
||||||
define_native_property(vm.names.description, description_getter, {}, Attribute::Configurable);
|
define_native_accessor(vm.names.description, description_getter, {}, Attribute::Configurable);
|
||||||
define_native_function(vm.well_known_symbol_to_primitive(), symbol_to_primitive, 1, Attribute::Configurable);
|
define_native_function(vm.well_known_symbol_to_primitive(), symbol_to_primitive, 1, Attribute::Configurable);
|
||||||
|
|
||||||
// 20.4.3.6 Symbol.prototype [ @@toStringTag ], https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
// 20.4.3.6 Symbol.prototype [ @@toStringTag ], https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue