Ver Fonte

LibJS: Fix string representation for value of type undefined

Elisée Maurer há 5 anos atrás
pai
commit
cbe0053a97
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Libraries/LibJS/Value.cpp

+ 1 - 1
Libraries/LibJS/Value.cpp

@@ -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.