Skip to content

Commit

Permalink
fix(node): Ensure NODE_OPTIONS is not passed to worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Dec 22, 2024
1 parent 65531f3 commit ae8d119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/node/src/integrations/anr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ async function _startWorker(
workerData: options,
// We don't want any Node args to be passed to the worker
execArgv: [],
env: { ...process.env, NODE_OPTIONS: undefined },
});

process.on('exit', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const localVariablesAsyncIntegration = defineIntegration(((
workerData: options,
// We don't want any Node args to be passed to the worker
execArgv: [],
env: { ...process.env, NODE_OPTIONS: undefined },
});

process.on('exit', () => {
Expand Down

0 comments on commit ae8d119

Please sign in to comment.