ladybird/Userland/Libraries/LibJS/Contrib/Test262/AgentObject.h

29 lines
564 B
C
Raw Normal View History

/*
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/Object.h>
namespace JS::Test262 {
class AgentObject final : public Object {
JS_OBJECT(AgentObject, Object);
public:
virtual JS::ThrowCompletionOr<void> initialize(Realm&) override;
virtual ~AgentObject() override = default;
private:
explicit AgentObject(Realm&);
JS_DECLARE_NATIVE_FUNCTION(monotonic_now);
JS_DECLARE_NATIVE_FUNCTION(sleep);
};
}