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

Method invoke

gjs/context.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 GParamSpec*);
120
121void GjsContextPrivate::EnvironmentPreparer::invoke(JS::HandleObject scope,
122 Closure& closure) {
123 g_assert(!JS_IsExceptionPending(m_cx));
124
125 JSAutoRealm ar(m_cx, scope);
126 if (!closure(m_cx))
127 gjs_log_exception(m_cx);
128}
129
130struct _GjsContext {
131 GObject parent;

Callers 1

Calls 1

gjs_log_exceptionFunction · 0.85

Tested by

no test coverage detected