1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

LibJS: Store and return undefined Symbol description

Instead of the current incorrect behaviour of just defaulting to an
empty string.
This commit is contained in:
Idan Horowitz 2021-06-15 02:40:55 +03:00 committed by Linus Groh
parent 4aff4249aa
commit dac971b4ae
5 changed files with 17 additions and 19 deletions

View file

@ -23,7 +23,7 @@ public:
Symbol& primitive_symbol() { return m_symbol; }
const Symbol& primitive_symbol() const { return m_symbol; }
const String& description() const { return m_symbol.description(); }
String description() const { return m_symbol.description(); }
bool is_global() const { return m_symbol.is_global(); }
virtual Value value_of() const override