LibJS: to_string_without_side_effects() should handle NativeProperty

This commit is contained in:
Andreas Kling 2020-06-25 22:22:57 +02:00
parent ee4cf0bc69
commit 200481efb2
Notes: sideshowbarker 2024-07-19 05:22:36 +09:00

View file

@ -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 "<accessor>";
case Type::NativeProperty:
return "<native-property>";
default:
ASSERT_NOT_REACHED();
}