From cbe0053a97e4b619d583d043d9959219475e5fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e=20Maurer?= Date: Sat, 7 Mar 2020 23:11:17 +0100 Subject: [PATCH] LibJS: Fix string representation for value of type undefined --- Libraries/LibJS/Value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibJS/Value.cpp b/Libraries/LibJS/Value.cpp index 50b4d0c3c0..6fdb149cdb 100644 --- a/Libraries/LibJS/Value.cpp +++ b/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.