1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:47:35 +00:00

LibJS/JIT: Compile the IteratorClose instruction

This commit is contained in:
Simon Wanner 2023-10-29 16:59:53 +01:00 committed by Andreas Kling
parent 233502a10c
commit c697ff61f6
3 changed files with 28 additions and 1 deletions

View file

@ -1343,6 +1343,9 @@ public:
ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const;
DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const;
Completion::Type completion_type() const { return m_completion_type; }
Optional<Value> const& completion_value() const { return m_completion_value; }
private:
Completion::Type m_completion_type { Completion::Type::Normal };
Optional<Value> m_completion_value;