Skip to content

Conversation

@kt3k
Copy link
Member

@kt3k kt3k commented Jun 4, 2025

This PR changes the interpretation of command line args when child_process.spawn is called with Deno.execPath() executable.

We modify cli args for spawn(process.execPath, ...) call to simulate Node.js cli. This PR adds the handling of --pending-deprecation flag. Now if --pending-deprecation is specified, it's set to NODE_OPTIONS env var of the child process, which correctly affects the printing of deprecation warning of Buffer constructor.

towards #29589

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kt3k kt3k merged commit 1e6aca5 into denoland:main Jun 5, 2025
18 checks passed
@kt3k kt3k deleted the fix-ext-node-pass-node-options-via-env-var branch June 5, 2025 01:38
@kt3k kt3k mentioned this pull request Jun 5, 2025
13 tasks
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.

2 participants