Skip to content

Commit aef8c98

Browse files
authored
fix(node): Use unique variable for ANR context transfer (v7) (#11162)
Backport of #11161
1 parent 4059bbd commit aef8c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/integrations/anr/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ if (options.captureStackTrace) {
173173
{
174174
// Grab the trace context from the current scope
175175
expression:
176-
'const ctx = __SENTRY__.hub.getScope().getPropagationContext(); ctx.traceId + "-" + ctx.spanId + "-" + ctx.parentSpanId',
176+
'var __sentry_ctx = __SENTRY__.hub.getScope().getPropagationContext(); __sentry_ctx.traceId + "-" + __sentry_ctx.spanId + "-" + __sentry_ctx.parentSpanId',
177177
// Don't re-trigger the debugger if this causes an error
178178
silent: true,
179179
},

0 commit comments

Comments
 (0)