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

Method hook_up_vfunc

gi/object.cpp:3753–3758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3751}
3752
3753bool ObjectBase::hook_up_vfunc(JSContext* cx, unsigned argc, JS::Value* vp) {
3754 GJS_CHECK_WRAPPER_PRIV(cx, argc, vp, args, prototype, ObjectBase, priv);
3755 /* Normally we wouldn't assert is_prototype(), but this method can only be
3756 * called internally so it's OK to crash if done wrongly */
3757 return priv->to_prototype()->hook_up_vfunc_impl(cx, args);
3758}
3759
3760bool ObjectPrototype::hook_up_vfunc_impl(JSContext* cx,
3761 const JS::CallArgs& args) {

Callers 1

define_classMethod · 0.80

Calls 2

hook_up_vfunc_implMethod · 0.80
to_prototypeMethod · 0.80

Tested by

no test coverage detected