diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2023-02-26 16:09:02 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-15 08:48:49 +0100 |
commit | 7c0c1c8f4969abeec1436346f29081b3afbcdeab (patch) | |
tree | 985c294882161720a82dc54c70d0680e29700ec9 /Userland/Libraries/LibJS/Runtime/Iterator.h | |
parent | 1df3652e272e1aa69b3a1f8d1730ec464242ada9 (diff) | |
download | serenity-7c0c1c8f4969abeec1436346f29081b3afbcdeab.zip |
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Iterator.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Iterator.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Iterator.h b/Userland/Libraries/LibJS/Runtime/Iterator.h index 4be4d65083..980d25d6a1 100644 --- a/Userland/Libraries/LibJS/Runtime/Iterator.h +++ b/Userland/Libraries/LibJS/Runtime/Iterator.h @@ -13,9 +13,9 @@ namespace JS { // 7.4.1 Iterator Records, https://tc39.es/ecma262/#sec-iterator-records struct Iterator { - Object* iterator { nullptr }; // [[Iterator]] - Value next_method; // [[NextMethod]] - bool done { false }; // [[Done]] + GCPtr<Object> iterator; // [[Iterator]] + Value next_method; // [[NextMethod]] + bool done { false }; // [[Done]] }; } |