NumberPrototype.h 756 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <andreas@ladybird.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/NumberObject.h>
  8. namespace JS {
  9. class NumberPrototype final : public NumberObject {
  10. JS_OBJECT(NumberPrototype, NumberObject);
  11. GC_DECLARE_ALLOCATOR(NumberPrototype);
  12. public:
  13. virtual void initialize(Realm&) override;
  14. virtual ~NumberPrototype() override = default;
  15. JS_DECLARE_NATIVE_FUNCTION(to_exponential);
  16. JS_DECLARE_NATIVE_FUNCTION(to_fixed);
  17. JS_DECLARE_NATIVE_FUNCTION(to_locale_string);
  18. JS_DECLARE_NATIVE_FUNCTION(to_precision);
  19. JS_DECLARE_NATIVE_FUNCTION(to_string);
  20. JS_DECLARE_NATIVE_FUNCTION(value_of);
  21. private:
  22. explicit NumberPrototype(Realm&);
  23. };
  24. }