mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:07:34 +00:00
LibJS: Unify Symbol::description() and raw_description()
Let callers take care of handling the empty optional case (undefined in the spec).
This commit is contained in:
parent
fcdabd179a
commit
5e72fde954
5 changed files with 11 additions and 10 deletions
|
@ -21,8 +21,7 @@ public:
|
|||
|
||||
virtual ~Symbol() = default;
|
||||
|
||||
DeprecatedString description() const { return m_description.value_or(""); }
|
||||
Optional<DeprecatedString> const& raw_description() const { return m_description; }
|
||||
Optional<DeprecatedString> const& description() const { return m_description; }
|
||||
bool is_global() const { return m_is_global; }
|
||||
|
||||
DeprecatedString descriptive_string() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue