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

Method init

gjs/objectbox.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 GJS_JSAPI_RETURN_CONVENTION
48 bool init(JSContext* cx) {
49 if (!m_wrappers.append(m_parent)) {
50 JS_ReportOutOfMemory(cx);
51 return false;
52 }
53 return true;
54 }
55
56 ~impl() {
57 auto* it = std::find(m_wrappers.begin(), m_wrappers.end(), m_parent);

Callers 8

gjs_dumpstack_stringFunction · 0.45
register_moduleMethod · 0.45
eval_with_scopeMethod · 0.45
gjs_load_internal_moduleFunction · 0.45
compile_moduleFunction · 0.45
evaluate_importMethod · 0.45
run_bootstrapMethod · 0.45
boxedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected