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

Function gjs_module_import

gjs/module.cpp:287–290  ·  view source on GitHub ↗

* gjs_module_import: * @cx: the JS context * @importer: the JS importer object, parent of the module to be imported * @id: module name in the form of a jsid * @name: module name, used for logging and identification * @file: location of the file to import * * Carries out an import of a GJS module. * Defines a property @name on @importer pointing to the module object, which * is necessary i

Source from the content-addressed store, hash-verified

285 * Returns: the JS module object, or nullptr on failure.
286 */
287JSObject* gjs_module_import(JSContext* cx, JS::HandleObject importer,
288 JS::HandleId id, const char* name, GFile* file) {
289 return GjsScriptModule::import(cx, importer, id, name, file);
290}
291
292/**
293 * gjs_get_native_registry:

Callers 1

attempt_importFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected