From 200481efb2177fe84b03ed6294ec05da1dd257de Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 25 Jun 2020 22:22:57 +0200 Subject: [PATCH] LibJS: to_string_without_side_effects() should handle NativeProperty --- Libraries/LibJS/Runtime/Value.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibJS/Runtime/Value.cpp b/Libraries/LibJS/Runtime/Value.cpp index 70ccefda20..c1b67bcb6d 100644 --- a/Libraries/LibJS/Runtime/Value.cpp +++ b/Libraries/LibJS/Runtime/Value.cpp @@ -125,6 +125,8 @@ String Value::to_string_without_side_effects() const return String::format("[object %s]", as_object().class_name()); case Type::Accessor: return ""; + case Type::NativeProperty: + return ""; default: ASSERT_NOT_REACHED(); }