* GIWrapperBase::get_prototype: * * get_prototype() doesn't assert. If you call it on a Prototype, it returns * you the same object cast to the correct type; if you call it on an * Instance, it returns you the Prototype belonging to the corresponding JS * prototype. */
| 236 | * prototype. |
| 237 | */ |
| 238 | [[nodiscard]] [[gnu::const]] |
| 239 | Prototype* get_prototype() { |
| 240 | return is_prototype() ? to_prototype() : m_proto; |
| 241 | } |
| 242 | [[nodiscard]] |
| 243 | const Prototype* get_prototype() const { |
| 244 | return is_prototype() ? to_prototype() : m_proto; |