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

Function gjs_coverage_constructed

gjs/coverage.cpp:352–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static 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
368static void gjs_coverage_set_property(GObject* object, unsigned prop_id,
369 const GValue* value,

Callers

nothing calls this directly

Calls 3

bootstrap_coverageFunction · 0.85
gjs_log_exceptionFunction · 0.85

Tested by

no test coverage detected