Coverage Report

Created: 2026-09-14 07:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibJS/Runtime/BigIntConstructor.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2020, Linus Groh <linusg@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibJS/Runtime/NativeFunction.h>
10
11
namespace JS {
12
13
class BigIntConstructor final : public NativeFunction {
14
    JS_OBJECT(BigIntConstructor, NativeFunction);
15
    JS_DECLARE_ALLOCATOR(BigIntConstructor);
16
17
public:
18
    virtual void initialize(Realm&) override;
19
    virtual ~BigIntConstructor() override = default;
20
21
    virtual ThrowCompletionOr<Value> call() override;
22
    virtual ThrowCompletionOr<NonnullGCPtr<Object>> construct(FunctionObject& new_target) override;
23
24
private:
25
    explicit BigIntConstructor(Realm&);
26
27
0
    virtual bool has_constructor() const override { return true; }
28
29
    JS_DECLARE_NATIVE_FUNCTION(as_int_n);
30
    JS_DECLARE_NATIVE_FUNCTION(as_uint_n);
31
};
32
33
}