| 116 | } |
| 117 | |
| 118 | static bool define_extra_error_properties(JSContext* cx, JS::HandleObject obj) { |
| 119 | StructBase* priv = StructBase::for_js(cx, obj); |
| 120 | if (priv->gtype() != G_TYPE_ERROR) |
| 121 | return true; |
| 122 | return gjs_define_error_properties(cx, obj); |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * StructInstance::new_for_c_struct: |
no test coverage detected