| 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); |
no outgoing calls
no test coverage detected