LibJS: Fix string representation for value of type undefined

This commit is contained in:
Elisée Maurer 2020-03-07 23:11:17 +01:00 committed by Andreas Kling
parent f5476be702
commit cbe0053a97
Notes: sideshowbarker 2024-07-19 08:51:10 +09:00

View file

@ -39,7 +39,7 @@ String Value::to_string() const
return "null";
if (is_undefined())
return "null";
return "undefined";
if (is_number()) {
// FIXME: This needs improvement.