mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS: Allow to stringify empty Values without side effects
This commit is contained in:
@@ -390,6 +390,8 @@ ErrorOr<String> Value::to_string_without_side_effects() const
|
||||
return String::formatted("[object {}]", as_object().class_name());
|
||||
case ACCESSOR_TAG:
|
||||
return "<accessor>"_string;
|
||||
case EMPTY_TAG:
|
||||
return "<empty>"_string;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user