| 1629 | } |
| 1630 | |
| 1631 | bool gjs_context_eval_module_file(GjsContext* self, const char* filename, |
| 1632 | uint8_t* exit_status_p, GError** error) { |
| 1633 | Gjs::AutoUnref<GFile> file{g_file_new_for_commandline_arg(filename)}; |
| 1634 | Gjs::AutoChar uri{g_file_get_uri(file)}; |
| 1635 | |
| 1636 | return gjs_context_register_module(self, uri, uri, error) && |
| 1637 | gjs_context_eval_module(self, uri, exit_status_p, error); |
| 1638 | } |
| 1639 | |
| 1640 | /** |
| 1641 | * GjsContextPrivate::eval_with_scope: |