Coverage Report

Created: 2025-11-16 07:46

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibJS/Runtime/BigIntObject.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2020-2023, Linus Groh <linusg@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <LibJS/Runtime/BigIntObject.h>
8
#include <LibJS/Runtime/GlobalObject.h>
9
10
namespace JS {
11
12
JS_DEFINE_ALLOCATOR(BigIntObject);
13
14
NonnullGCPtr<BigIntObject> BigIntObject::create(Realm& realm, BigInt& bigint)
15
0
{
16
0
    return realm.heap().allocate<BigIntObject>(realm, bigint, realm.intrinsics().bigint_prototype());
17
0
}
18
19
BigIntObject::BigIntObject(BigInt& bigint, Object& prototype)
20
0
    : Object(ConstructWithPrototypeTag::Tag, prototype)
21
0
    , m_bigint(bigint)
22
0
{
23
0
}
24
25
void BigIntObject::visit_edges(Cell::Visitor& visitor)
26
0
{
27
0
    Base::visit_edges(visitor);
28
0
    visitor.visit(m_bigint);
29
0
}
30
31
}