mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibJS: to_string_without_side_effects() should handle NativeProperty
This commit is contained in:
parent
ee4cf0bc69
commit
200481efb2
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ String Value::to_string_without_side_effects() const
|
||||||
return String::format("[object %s]", as_object().class_name());
|
return String::format("[object %s]", as_object().class_name());
|
||||||
case Type::Accessor:
|
case Type::Accessor:
|
||||||
return "<accessor>";
|
return "<accessor>";
|
||||||
|
case Type::NativeProperty:
|
||||||
|
return "<native-property>";
|
||||||
default:
|
default:
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue