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