mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
LibJS: Implement parsing and execution of optional chains
This commit is contained in:
parent
4f7e14e0aa
commit
72ddaa31e3
Notes:
sideshowbarker
2024-07-18 03:58:17 +09:00
Author: https://github.com/alimpfard
Commit: 72ddaa31e3
Pull-request: https://github.com/SerenityOS/serenity/pull/10026
Reviewed-by: https://github.com/davidot
Reviewed-by: https://github.com/linusg ✅
6 changed files with 318 additions and 42 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue