mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibJS: Implement the IteratorClose abstract op and use it where needed
This commit is contained in:
parent
3e4b48f68e
commit
2100b46d02
Notes:
sideshowbarker
2024-07-18 12:14:04 +09:00
Author: https://github.com/IdanHo
Commit: 2100b46d02
Pull-request: https://github.com/SerenityOS/serenity/pull/8049
Reviewed-by: https://github.com/linusg ✅
4 changed files with 46 additions and 8 deletions
|
@ -188,6 +188,7 @@ public:
|
|||
bool should_unwind() const { return m_unwind_until != ScopeType::None; }
|
||||
|
||||
ScopeType unwind_until() const { return m_unwind_until; }
|
||||
FlyString unwind_until_label() const { return m_unwind_until_label; }
|
||||
|
||||
Value get_variable(const FlyString& name, GlobalObject&);
|
||||
void set_variable(const FlyString& name, Value, GlobalObject&, bool first_assignment = false, ScopeObject* specific_scope = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue