| 3751 | } |
| 3752 | |
| 3753 | bool 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 | |
| 3760 | bool ObjectPrototype::hook_up_vfunc_impl(JSContext* cx, |
| 3761 | const JS::CallArgs& args) { |
no test coverage detected