1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 05:42:06 +00:00

LibJS: Move Value::as_accessor() to Value.h

This commit is contained in:
Linus Groh 2020-06-04 22:00:17 +01:00 committed by Andreas Kling
parent 5a983c238b
commit 5b88aa8e96
2 changed files with 7 additions and 8 deletions

View file

@ -62,12 +62,6 @@ Function& Value::as_function()
return static_cast<Function&>(as_object());
}
Accessor& Value::as_accessor()
{
ASSERT(is_accessor());
return static_cast<Accessor&>(*m_value.as_accessor);
}
String Value::to_string_without_side_effects() const
{
switch (m_type) {