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

Method add_property_impl

gi/object.cpp:265–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool ObjectInstance::add_property_impl(JSContext* cx, JS::HandleObject obj,
266 JS::HandleId id, JS::HandleValue) {
267 debug_jsprop("Add property hook", id, obj);
268
269 if (is_custom_js_class())
270 return true;
271
272 ensure_uses_toggle_ref(cx);
273 return true;
274}
275
276template <typename TAG>
277bool ObjectBase::prop_getter(JSContext* cx, unsigned argc, JS::Value* vp) {

Callers 1

add_propertyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected