ladybird/Userland/Libraries/LibJS/Runtime/Iterator.h
Timothy Flynn 2575184242 LibJS: Add a spec link for Iterator Records
This is an editorial change to the spec to strongly define this record:
https://github.com/tc39/ecma262/commit/85d910c
2022-02-18 13:57:34 +00:00

21 lines
453 B
C++

/*
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/Value.h>
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]]
};
}