12345678910111213141516171819202122232425262728 |
- /*
- * Copyright (c) 2020, Jack Karamanian <karamanian.jack@gmail.com>
- *
- * SPDX-License-Identifier: BSD-2-Clause
- */
- #pragma once
- #include <LibJS/Runtime/BooleanObject.h>
- namespace JS {
- class BooleanPrototype final : public BooleanObject {
- JS_OBJECT(BooleanPrototype, BooleanObject);
- GC_DECLARE_ALLOCATOR(BooleanPrototype);
- public:
- virtual void initialize(Realm&) override;
- virtual ~BooleanPrototype() override = default;
- private:
- explicit BooleanPrototype(Realm&);
- JS_DECLARE_NATIVE_FUNCTION(to_string);
- JS_DECLARE_NATIVE_FUNCTION(value_of);
- };
- }
|