* 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
| 285 | * Returns: the JS module object, or nullptr on failure. |
| 286 | */ |
| 287 | JSObject* 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: |