BooleanPrototype.h 585 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2020, Jack Karamanian <karamanian.jack@gmail.com>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/BooleanObject.h>
  8. namespace JS {
  9. class BooleanPrototype final : public BooleanObject {
  10. JS_OBJECT(BooleanPrototype, BooleanObject);
  11. GC_DECLARE_ALLOCATOR(BooleanPrototype);
  12. public:
  13. virtual void initialize(Realm&) override;
  14. virtual ~BooleanPrototype() override = default;
  15. private:
  16. explicit BooleanPrototype(Realm&);
  17. JS_DECLARE_NATIVE_FUNCTION(to_string);
  18. JS_DECLARE_NATIVE_FUNCTION(value_of);
  19. };
  20. }