Coverage Report

Created: 2026-05-16 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibJS/Runtime/DisposableStackConstructor.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2022, David Tuin <davidot@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 DisposableStackConstructor final : public NativeFunction {
14
    JS_OBJECT(DisposableStackConstructor, NativeFunction);
15
    JS_DECLARE_ALLOCATOR(DisposableStackConstructor);
16
17
public:
18
    virtual void initialize(Realm&) override;
19
    virtual ~DisposableStackConstructor() override = default;
20
21
    virtual ThrowCompletionOr<Value> call() override;
22
    virtual ThrowCompletionOr<NonnullGCPtr<Object>> construct(FunctionObject&) override;
23
24
private:
25
    explicit DisposableStackConstructor(Realm&);
26
27
0
    virtual bool has_constructor() const override { return true; }
28
};
29
30
}