1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

LibJS: Implement parsing and execution of optional chains

This commit is contained in:
Ali Mohammad Pur 2021-09-14 06:56:31 +04:30 committed by Linus Groh
parent 4f7e14e0aa
commit 72ddaa31e3
6 changed files with 318 additions and 42 deletions

View file

@ -97,6 +97,12 @@ public:
return !m_this_value.is_empty();
}
// Note: Non-standard helper.
bool is_environment_reference() const
{
return m_base_type == BaseType::Environment;
}
void put_value(GlobalObject&, Value);
Value get_value(GlobalObject&, bool throw_if_undefined = true) const;
bool delete_(GlobalObject&);