MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / getWorkerImage

Function getWorkerImage

packages/wasm/src/index.ts:143–148  ·  view source on GitHub ↗

* Looks up an image by URL in worker images.

(url: string)

Source from the content-addressed store, hash-verified

141 * Looks up an image by URL in worker images.
142 */
143function getWorkerImage(url: string): number {
144 const workerImages = WINDOW._sentryWasmImages || [];
145 return workerImages.findIndex(image => {
146 return image.type === 'wasm' && image.code_file === url;
147 });
148}
149
150/**
151 * Use this function to register WASM support in a web worker.

Callers 1

patchFramesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected