mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-15 19:21:38 +00:00
LibJS: Remove no-op SymbolPrototype::description_setter()
We can just give put_native_property() a nullptr for the setter.
This commit is contained in:
parent
50c116e57b
commit
b8b7f84547
Notes:
sideshowbarker
2024-07-19 06:32:29 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/b8b7f84547a Pull-request: https://github.com/SerenityOS/serenity/pull/2271
2 changed files with 1 additions and 8 deletions
|
@ -42,8 +42,7 @@ namespace JS {
|
|||
SymbolPrototype::SymbolPrototype()
|
||||
: Object(interpreter().global_object().object_prototype())
|
||||
{
|
||||
// FIXME: description has no setter, eventually remove
|
||||
put_native_property("description", description_getter, description_setter, Attribute::Configurable);
|
||||
put_native_property("description", description_getter, nullptr, Attribute::Configurable);
|
||||
|
||||
put_native_function("toString", to_string, 0, Attribute::Writable | Attribute::Configurable);
|
||||
put_native_function("valueOf", value_of, 0, Attribute::Writable | Attribute::Configurable);
|
||||
|
@ -73,11 +72,6 @@ Value SymbolPrototype::description_getter(Interpreter& interpreter)
|
|||
return js_string(interpreter, this_object->description());
|
||||
}
|
||||
|
||||
void SymbolPrototype::description_setter(Interpreter&, Value)
|
||||
{
|
||||
// No-op, remove eventually
|
||||
}
|
||||
|
||||
Value SymbolPrototype::to_string(Interpreter& interpreter)
|
||||
{
|
||||
auto* this_object = this_symbol_from_interpreter(interpreter);
|
||||
|
|
|
@ -39,7 +39,6 @@ private:
|
|||
virtual const char* class_name() const override { return "SymbolPrototype"; }
|
||||
|
||||
static Value description_getter(Interpreter&);
|
||||
static void description_setter(Interpreter&, Value);
|
||||
|
||||
static Value to_string(Interpreter&);
|
||||
static Value value_of(Interpreter&);
|
||||
|
|
Loading…
Reference in a new issue