MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_wrapper_throw_readonly_field

Function gjs_wrapper_throw_readonly_field

gi/wrapperutils.cpp:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool 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
65template <GI::InfoTag TAG>
66bool gjs_define_static_methods(JSContext* cx, JS::HandleObject constructor,

Callers 3

prop_setter_read_onlyMethod · 0.85
field_setter_not_implMethod · 0.85
props_to_g_parametersMethod · 0.85

Calls 1

gjs_throwFunction · 0.85

Tested by

no test coverage detected