Serenity Operating System
1/*
2 * Copyright (c) 2020-2022, Linus Groh <linusg@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <LibJS/Runtime/BigInt.h>
10#include <LibJS/Runtime/Object.h>
11
12namespace JS {
13
14class BigIntObject final : public Object {
15 JS_OBJECT(BigIntObject, Object);
16
17public:
18 static NonnullGCPtr<BigIntObject> create(Realm&, BigInt&);
19
20 virtual ~BigIntObject() override = default;
21
22 BigInt const& bigint() const { return m_bigint; }
23 BigInt& bigint() { return m_bigint; }
24
25private:
26 BigIntObject(BigInt&, Object& prototype);
27
28 virtual void visit_edges(Visitor&) override;
29
30 BigInt& m_bigint;
31};
32
33}