mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +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
|
@ -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