| 119 | GParamSpec*); |
| 120 | |
| 121 | void 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 | |
| 130 | struct _GjsContext { |
| 131 | GObject parent; |
no test coverage detected