mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibJS: Fix string representation for value of type undefined
This commit is contained in:
parent
f5476be702
commit
cbe0053a97
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ String Value::to_string() const
|
||||||
return "null";
|
return "null";
|
||||||
|
|
||||||
if (is_undefined())
|
if (is_undefined())
|
||||||
return "null";
|
return "undefined";
|
||||||
|
|
||||||
if (is_number()) {
|
if (is_number()) {
|
||||||
// FIXME: This needs improvement.
|
// FIXME: This needs improvement.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue