BigIntPrototype.h 600 B

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