From 5c1af1d6f7fbcc475493f4a09508d613c9e2e4d2 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 13 Jun 2021 20:14:05 +0100 Subject: [PATCH] LibJS: Make Symbol.prototype.description an accessor --- Userland/Libraries/LibJS/Runtime/SymbolPrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/SymbolPrototype.cpp b/Userland/Libraries/LibJS/Runtime/SymbolPrototype.cpp index 784a36c542..dbe839c26e 100644 --- a/Userland/Libraries/LibJS/Runtime/SymbolPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/SymbolPrototype.cpp @@ -29,7 +29,7 @@ void SymbolPrototype::initialize(GlobalObject& global_object) u8 attr = Attribute::Writable | Attribute::Configurable; define_native_function(vm.names.toString, to_string, 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); // 20.4.3.6 Symbol.prototype [ @@toStringTag ], https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag