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

Function gjs_define_console_stuff

modules/console.cpp:372–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372bool gjs_define_console_stuff(JSContext* cx, JS::MutableHandleObject module) {
373 module.set(JS_NewPlainObject(cx));
374 const GjsAtoms& atoms = GjsContextPrivate::atoms(cx);
375 return JS_DefineFunctionById(cx, module, atoms.interact(),
376 gjs_console_interact, 1,
377 GJS_MODULE_PROP_FLAGS);
378}

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected