(importObject)
| 93 | return worker; |
| 94 | }, |
| 95 | overwriteImports(importObject) { |
| 96 | importObject.env = { |
| 97 | ...importObject.env, |
| 98 | ...importObject.napi, |
| 99 | ...importObject.emnapi, |
| 100 | memory: __sharedMemory, |
| 101 | }; |
| 102 | return importObject; |
| 103 | }, |
| 104 | beforeInit({ instance }) { |
| 105 | for (const name of Object.keys(instance.exports)) { |
| 106 | if (name.startsWith('__napi_register__')) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…