Skip to content

Commit e7b3530

Browse files
authored
fix(v8/node): Ensure NODE_OPTIONS is not passed to worker threads (#14825)
Backport of #14824
1 parent d3f52cf commit e7b3530

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ async function _startWorker(
176176
workerData: options,
177177
// We don't want any Node args to be passed to the worker
178178
execArgv: [],
179+
env: { ...process.env, NODE_OPTIONS: undefined },
179180
});
180181

181182
process.on('exit', () => {

packages/node/src/integrations/local-variables/local-variables-async.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const localVariablesAsyncIntegration = defineIntegration(((
8181
workerData: options,
8282
// We don't want any Node args to be passed to the worker
8383
execArgv: [],
84+
env: { ...process.env, NODE_OPTIONS: undefined },
8485
});
8586

8687
process.on('exit', () => {

0 commit comments

Comments
 (0)