| 370 | } |
| 371 | |
| 372 | bool 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 | } |