| 350 | } |
| 351 | |
| 352 | static void gjs_coverage_constructed(GObject* object) { |
| 353 | G_OBJECT_CLASS(gjs_coverage_parent_class)->constructed(object); |
| 354 | |
| 355 | GjsCoverage* self = GJS_COVERAGE(object); |
| 356 | auto* priv = static_cast<GjsCoveragePrivate*>( |
| 357 | gjs_coverage_get_instance_private(self)); |
| 358 | new (&priv->global) JS::Heap<JSObject*>(); |
| 359 | |
| 360 | if (!bootstrap_coverage(self)) { |
| 361 | JSContext* cx = static_cast<JSContext*>( |
| 362 | gjs_context_get_native_context(priv->coverage_context)); |
| 363 | Gjs::AutoMainRealm ar{cx}; |
| 364 | gjs_log_exception(cx); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | static void gjs_coverage_set_property(GObject* object, unsigned prop_id, |
| 369 | const GValue* value, |
nothing calls this directly
no test coverage detected