mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
LibJS/Bytecode: Implement optional chaining
This commit is contained in:
parent
c9088fa6ec
commit
1116ba191a
Notes:
sideshowbarker
2024-07-17 07:35:03 +09:00
Author: https://github.com/Lubrsi
Commit: 1116ba191a
Pull-request: https://github.com/SerenityOS/serenity/pull/19444
2 changed files with 148 additions and 54 deletions
|
@ -1975,6 +1975,10 @@ public:
|
|||
virtual Completion execute(Interpreter&) const override;
|
||||
virtual ThrowCompletionOr<JS::Reference> to_reference(Interpreter&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
virtual Bytecode::CodeGenerationErrorOr<void> generate_bytecode(Bytecode::Generator&) const override;
|
||||
|
||||
Expression const& base() const { return *m_base; }
|
||||
Vector<Reference> const& references() const { return m_references; }
|
||||
|
||||
private:
|
||||
struct ReferenceAndValue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue