summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ConsoleObject.h
blob: 71a34f2f3a6f8a346dc170bd2fff69fd1be05cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibJS/Runtime/Object.h>

namespace JS {

class ConsoleObject final : public Object {
    JS_OBJECT(ConsoleObject, Object);

public:
    explicit ConsoleObject(GlobalObject&);
    virtual void initialize(GlobalObject&) override;
    virtual ~ConsoleObject() override;

private:
    JS_DECLARE_OLD_NATIVE_FUNCTION(log);
    JS_DECLARE_OLD_NATIVE_FUNCTION(debug);
    JS_DECLARE_OLD_NATIVE_FUNCTION(info);
    JS_DECLARE_OLD_NATIVE_FUNCTION(warn);
    JS_DECLARE_OLD_NATIVE_FUNCTION(error);
    JS_DECLARE_OLD_NATIVE_FUNCTION(trace);
    JS_DECLARE_OLD_NATIVE_FUNCTION(count);
    JS_DECLARE_OLD_NATIVE_FUNCTION(count_reset);
    JS_DECLARE_OLD_NATIVE_FUNCTION(clear);
    JS_DECLARE_OLD_NATIVE_FUNCTION(assert_);
};

}