| 56 | } |
| 57 | |
| 58 | bool gjs_wrapper_throw_readonly_field(JSContext* cx, GType gtype, |
| 59 | const char* field_name) { |
| 60 | gjs_throw(cx, "Property %s.%s is not writable", g_type_name(gtype), |
| 61 | field_name); |
| 62 | return false; |
| 63 | } |
| 64 | |
| 65 | template <GI::InfoTag TAG> |
| 66 | bool gjs_define_static_methods(JSContext* cx, JS::HandleObject constructor, |
no test coverage detected