()
| 3 | let cvInstance = null; |
| 4 | |
| 5 | export async function getOpenCv() { |
| 6 | if (!cvInstance) { |
| 7 | cvInstance = await cvReadyPromise; |
| 8 | } |
| 9 | return { cv: cvInstance }; |
| 10 | } |
| 11 | |
| 12 | export function translateException(cv, err) { |
| 13 | if (typeof err === "number") { |
no outgoing calls
no test coverage detected