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

Function gjs_context_eval_module_file

gjs/context.cpp:1631–1638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1629}
1630
1631bool 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:

Calls 2

gjs_context_eval_moduleFunction · 0.85