| 1296 | } |
| 1297 | |
| 1298 | bool gjs_context_register_module(GjsContext* self, const char* identifier, |
| 1299 | const char* uri, GError** error) { |
| 1300 | g_return_val_if_fail(GJS_IS_CONTEXT(self), false); |
| 1301 | |
| 1302 | GjsContextPrivate* gjs = GjsContextPrivate::from_object(self); |
| 1303 | |
| 1304 | return result_to_c(gjs->register_module(identifier, uri), error); |
| 1305 | } |
| 1306 | |
| 1307 | bool GjsContextPrivate::auto_profile_enter() { |
| 1308 | bool auto_profile = m_should_profile; |