Skip to content

fix(wasm): Register modules loaded via non-streaming WebAssembly APIs - #23661

Draft
andreiborza wants to merge 1 commit into
ab/wasm-patch-plumbingfrom
ab/wasm-nonstreaming-registration
Draft

fix(wasm): Register modules loaded via non-streaming WebAssembly APIs#23661
andreiborza wants to merge 1 commit into
ab/wasm-patch-plumbingfrom
ab/wasm-nonstreaming-registration

Conversation

@andreiborza

@andreiborza andreiborza commented Aug 26, 2026

Copy link
Copy Markdown
Member

What

Registers WASM modules that are loaded through WebAssembly.instantiate(buffer), WebAssembly.compile, and new WebAssembly.Module() so their frames get symbolicated. Those modules carry no URL, so they are registered under the synthetic script name the engine uses in stack frames (wasm://wasm/<hash>), computed from the wire bytes.

Why

Non-streaming loads (the Emscripten fallback, dynamic linking, Godot Web) produced events without debug_meta, so uploaded debug files were never applied.

Closes: #19564

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.57 kB added added
@sentry/browser - with treeshaking flags 26.92 kB added added
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB added added
@sentry/browser (incl. Tracing) 48.58 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.6 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.51 kB added added
@sentry/browser (incl. Tracing, Replay) 88.06 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.46 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 92.76 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 105.47 kB added added
@sentry/browser (incl. Feedback) 45.81 kB added added
@sentry/browser (incl. sendFeedback) 33.36 kB added added
@sentry/browser (incl. FeedbackAsync) 38.46 kB added added
@sentry/browser (incl. Metrics) 29.51 kB added added
@sentry/browser (incl. Logs) 29.8 kB added added
@sentry/browser (incl. Metrics & Logs) 30.43 kB added added
@sentry/react 30.31 kB added added
@sentry/react (incl. Tracing) 50.79 kB added added
@sentry/vue 35.69 kB added added
@sentry/vue (incl. Tracing) 50.82 kB added added
@sentry/svelte 28.59 kB added added
CDN Bundle 30.36 kB added added
CDN Bundle (incl. Tracing) 49.07 kB added added
CDN Bundle (incl. Logs, Metrics) 32.56 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 50.95 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 73 kB added added
CDN Bundle (incl. Tracing, Replay) 86.58 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.46 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.34 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.27 kB added added
CDN Bundle - uncompressed 89.97 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.69 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.26 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.38 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.42 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.18 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.86 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.88 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.55 kB added added
@sentry/nextjs (client) 53.33 kB added added
@sentry/sveltekit (client) 49.03 kB added added
@sentry/core/server 65.3 kB added added
@sentry/core/browser 52.35 kB added added
@sentry/node 122.72 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 85.22 kB added added
@sentry/node - without tracing 87.97 kB added added
@sentry/aws-serverless 96.19 kB added added
@sentry/cloudflare (withSentry) - minified 199.57 kB added added
@sentry/cloudflare (withSentry) 495.71 kB added added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-streaming WebAssembly APIs are not intercepted breaking symbolication

1 participant