* Registers a WASM module and forwards its debug image to the parent thread.
( module: WebAssembly.Module, url: string, workerSelf: MinimalDedicatedWorkerGlobalScope, )
| 204 | * Registers a WASM module and forwards its debug image to the parent thread. |
| 205 | */ |
| 206 | function registerModuleAndForward( |
| 207 | module: WebAssembly.Module, |
| 208 | url: string, |
| 209 | workerSelf: MinimalDedicatedWorkerGlobalScope, |
| 210 | ): void { |
| 211 | const image = registerModule(module, url); |
| 212 | |
| 213 | if (image) { |
| 214 | workerSelf.postMessage({ |
| 215 | _sentryMessage: true, |
| 216 | _sentryWasmImages: [image], |
| 217 | }); |
| 218 | } |
| 219 | } |
no test coverage detected