ShadowRealmPrototype.h 698 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/PrototypeObject.h>
  8. #include <LibJS/Runtime/ShadowRealm.h>
  9. namespace JS {
  10. class ShadowRealmPrototype final : public PrototypeObject<ShadowRealmPrototype, ShadowRealm> {
  11. JS_PROTOTYPE_OBJECT(ShadowRealmPrototype, ShadowRealm, ShadowRealm);
  12. GC_DECLARE_ALLOCATOR(ShadowRealmPrototype);
  13. public:
  14. virtual void initialize(Realm&) override;
  15. virtual ~ShadowRealmPrototype() override = default;
  16. private:
  17. explicit ShadowRealmPrototype(Realm&);
  18. JS_DECLARE_NATIVE_FUNCTION(evaluate);
  19. JS_DECLARE_NATIVE_FUNCTION(import_value);
  20. };
  21. }