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

Function gjs_script_module_build_private

gjs/module.cpp:267–269  ·  view source on GitHub ↗

* gjs_script_module_build_private: * @cx: the #JSContext * @uri: the URI this script module is loaded from * * To support dynamic imports from scripts, we need to provide private data when * we compile scripts which is compatible with our module resolution hooks in * modules/internal/loader.js * * Returns: a JSObject which can be used for a JSScript's private data. */

Source from the content-addressed store, hash-verified

265 * Returns: a JSObject which can be used for a JSScript's private data.
266 */
267JSObject* gjs_script_module_build_private(JSContext* cx, const char* uri) {
268 return GjsScriptModule::build_private(cx, uri);
269}
270
271/**
272 * gjs_module_import:

Callers 1

eval_with_scopeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected